I want to use ajax with rest api in order to get workflow tasks of a user. I use this:
_spPageContextInfo.webAbsoluteUrl + "/_api/web/Lists/getByTitle('Workflow%20Tasks')/items?$filter=WorkflowName eq '" + workflowNameShort + "'"
address in order to get tasks of workflow name. when I add "assign to" - I get error that "assign to" is not existed field.
What could be the problem?
assign to
's internal name probably differs from its written format. I suggest to use e.g. Fiddler to see contents of the parent object in a JSON call. Alternatively you can look up for theassign to
column in your SP, go to the column's settings and see what is the column's written format in the URL of the page. If you are a bit unsure about what to look for in the 2nd approach, go with the 1st.