As @krishnags mentioned, you can use the formula to search the value.
Search term accepts following strings to search:
display name, given name, surname, mail, mail nickname and user principal name. If not provided then no filtering will be applied.
If the Search method returns multiple times, your desired value can be at any position. So filtering with proper value is important. Also, you must handle the case if Search does not return any values.
Regards
Krishna Rachakonda
| If this reply helped you to solve the issue, please mark the post as Accepted Solution. Marking this post as Accepted Solution, will help many other users to use this post to solve same or similar issue without re-posting the issue in the group. Saves a lot of time for everyone. |