SharePoint Workflow doesn't work. (Call HTTP Web Service) Sie haben diesen Thread abonniert. System.ApplicationException HTTP 500
-
29-12-2020 - |
Frage
I have following problem with my workflow:
The workflow should get every entry from the list which has the same user as the actual column.
But when I publish the workflow suspends and I get the error message "HTTP 500".
For the dictionary I use:
Accept
Content-Type
(application/json;odata=verbose)
Here are some Screenshots:
Lösung 2
I solved my Problem! The reason was the "log Results:". After i deleted this line it worked fine.
Thanks for your help!
BR Manuel
Andere Tipps
I believe your problem is in the web service call URL, can you test that directly in the browser?
Looking at a custom list in SharePoint here I can see that the custom columns of the User type (People Picker) fields show as "UserId" only and not as an expandable field as you have it in your query string, so perhaps your URL should look like:
/_api/web/lists/GetByTitle('list name')/items?$select=[select fields]&$filter=UserId eq '[id]'
Either way if you test your url with a valid SP User ID in any browser you should get the expected response.
Finally you can also check the variables you are passing, ensure that [%Current Item:User%] is definitely just the SP User Id (e.g. an int like 10).
Hope that helps, Martin