On the workflow send notifications, i need to Insert Reference , I select Requestor from Item Properties. It displays non meaning full name like
i:0#.w|xyz\test2 where test2 is the AD login name. This field gets the input form the Active Directory and i cannot see any option for display name.
It works fine if i use "Initiator display Name" from the common but common does not have the fields from the list.
Hopefully someone had a workaround.
Solved! Go to Solution.
I think I have a solution. I found a way to get the first name. So you can probably concatenate the last name to get the full name.
In my case, I used a field in SharePoint called POC. In the workflow, I created a workflow variable called POC. Since we are concatenating, you should probably call it POCFirstName. I used the Set Variable action. We are setting the POCFirstName variable = User Profiles Source = First Name when Account Name = LIst Lookup Source Current Item Field POC. I put that in the log history action to see what it returns and I got my first name which was in the POC field. The POC field in SharePoint was a people/group field. Do the same thing by setting up a POCLastName field. Then concatenate them by using a Build String action.
You can get the display name from AD using a Query LDAP action:
sAMAccountName is the login name - in Your example test2.
To get the login name from i:0#.w|xyz\test2 use a Regular expression action:
To reuse You can build a UDA.