Skip to main content

I have their email address. I tried to use "Query User Profile" hoping that a null result for a particular property (e.g. Name) would indicate that the user no longer exists. But instead the workflow enters a suspended date as it can not find anyone by that email.

 

Is there any way to catch that exception?

Hi,

Doesn't look like that action has error trapping associated with it, but you could use REST to query the user profile instead, e.g. http://siteurl/_api/SP.UserProfiles.PeopleManager/GetPropertiesFor(accountName=@v)?@v='encoded account name'

Then you can handle any errors yourself.

Jan


Reply