0

I am using the approach posted here by Vadim Gremyachev: Get current user information and add to email action in workflow?

here the REST-URL: /_api/Web/SiteUserInfoList/items?$filter=(ID eq <UserId>)

But the response code returns

NotAcceptable

I have the needed permissons on the list and site and also I am not using system account.

Any ideas?

  • 1
    Seeing this SO post, you probably need Accept header. Like: "Accept": "application/json; odata=verbose". stackoverflow.com/a/14252326/1934559 – Akhoy Oct 7 '15 at 10:16
  • I specified the requestHeader dictonary but forgot to set it in the web service call! facepalm, thx Akhoy! – Patrick Oct 7 '15 at 10:18
  • Should I add it as an answer so you can mark it? – Akhoy Oct 7 '15 at 10:18
  • yes, you can but maybe write also to check the web service call action – Patrick Oct 7 '15 at 10:19
1

Seeing this SO post: 406-Not Acceptable Response, you probably need Accept header.

"Accept": "application/json; odata=verbose".

You need to add this in your web service call action.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.