AnsweredAssumed Answered

Workflow Error Handling for 'Set Variable' Action

Question asked by bcasey on Mar 21, 2017
Latest reply on Mar 21, 2017 by shrinivasnaik

I have a workflow that collects a user ID from a people picker field.  This is pulled from the SharePoint user cache that comes ultimately from Active Directory. 

 

Part of the workflow is to take that user ID and pull the associated Display Name of the user to use in email notifications and to display in the list.  Often, people are picking a test account or admin account or service account from the people picker (because many of our people have multiple accounts in AD), and then the WF cannot find the display name and breaks.

 

Is there a way to have the WF check whether the account is an Admin or Test account (incorrect) or an actual person account (correct), and then perform a different action based on the result? 

Outcomes