How to retrieve user login name using user email id in Nintex workflow?
Solved! Go to Solution.
I suspect you need to look at the Call Web Service action, pointing at the user profile service on the server. I haven't actually done this myself, so i'm afraid I don't have a working example, but it might give you a place to start looking...
You can use the Call Web Service action, in conjunction with the SharePoint REST API, to retrieve information about a site user given a user's email address. The SharePoint User resource (described at https://msdn.microsoft.com/en-us/library/office/dn531432(v=office.15).aspx ) details how to retrieve a user by email address, using the GetByEmail method.
For example, to get a user by email address, call the following REST method, replacing {{Endpoint}} with the SharePoint site collection or site from which to get the user and user%40domain.com with the HTTP-encoded email address of the user.{{Endpoint}}/_api/web/siteusers/getbyemail(@v)?@v='user%40domain.com'
The SharePoint REST API docs provide several examples that allow you to get user information by login name, user ID, email address, and so on.
Hey Balaji Sampat, do you mean you are trying to get the DOMAIN\USERNAME ? and you have the user.name@domain.com
right Dan
try using set variable action
set: account name variable
equals: user profiles
source: account name as login name
when account name
equals: workflow data - the email address saved in a variable
hope this helps