0

I have REST API url: http://siteURL.com/_api/SP.UserProfiles.PeopleManager/GetUserProfilePropertyFor(accountName=@v,propertyName='Manager')?@v='[%Variable:user%]'

It works for me for propertyName = Manager I need to get other field through similar REST API call named "extensionAttribute1" which is Exchange atribute in Active Directory. I tried to change "Manager" to "extensionAttribute1" in URL above, but it gives me no value.

I work with SharePoint Online.

Could you help me, please?

David

1 Answer 1

0

I found solution on this site: https://prasadpathak.wordpress.com/tag/unable-to-deserialize-http-response-content/

Problem was that the workflow was Suspended with message: Details: An unhandled exception occurred during the execution of the workflow instance. Exception details: System.IO.InvalidDataException: Unable to deserialize HTTP response content. Expected ContentType : 'application/json', 'text/plain' or 'text/html', Received ContentType : 'application/xml'. ...

To solve this problem you need to build a Dictionary with two variables, NOT ONLY ONE "Accept". You have to create variable "Content-Type" too.

Hope it helps someone :)

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

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