Skip to main content
Answer

Using Startswith para to retrieve project tasks

  • June 11, 2024
  • 1 reply
  • 55 views

Driss
Jr Varsity III
Forum|alt.badge.img

Hi There

 

Hope you are doing well

 

I’m trying to retrieve project tasks based on some parameters but it throwing the error

 

Endpoint : /ProjectTask?$filter=startswith(ProjectTaskID, '0LED') and ProjectID eq '000407'

 

but the error i’m receiving is : 

 

  "exceptionMessage": "Incorrect syntax near the keyword 'AND'.",

 

 

Thanks

Best answer by Django

Do you have any issues if you remove the startswith and just specify one ProjectTaskID and one ProjectID?

And, just to confirm, you’re making a GET request?

1 reply

Forum|alt.badge.img+7
  • Captain II
  • Answer
  • June 12, 2024

Do you have any issues if you remove the startswith and just specify one ProjectTaskID and one ProjectID?

And, just to confirm, you’re making a GET request?