Hi I am using Query User Profile for fetching the Display name of a person field. But when I am running the workflow the workflow is failing with the following error message:
"Error querying user profile. No user profile found for user: 'i:0#.w|domain\ID'"
But I have checked with my SharePoint Admin and he says that there is a profile with that ID.
I have to fetch the name for my workflow. Please suggest some way.
Solved! Go to Solution.
Hi, do you try the request with only domain\ID?
You also can make a REST request on http://siteurl/_api/SP.UserProfiles.PeopleManager/GetUserProfilePropertyFor(accountName=@v,propertyN...?@v='%27i%3A0%23.w%7Cdomain\ID' and make a query xml on the result