User's Display Name in SharePoint designer Workflow
سؤال
Is it possible to change Users's display name in SharePoint workflow to first name & last name only?
Currently it is shown as "LastName,Firstname domain".
For example:
Current: Kumar, Ashok XYZ (here XYZ is domain Name)
Required: Ashok Kumar
المحلول
First of all try fetching the display name of Person or Group field like given in below image:
If this is not working for you then you need to extract the First Name and Last Name from the string you are getting as a output from above image.
You need to use below actions for that:
- Set the Display name (same as above image) in a workflow variable.
- Find the index of
Domain
from above variable. - Extract the sub-string from the variable.
- You can do similar steps if you want to get the First Name and Last Name in separate variable by finding the index of comma(,) and then extracting sub-string.
Reference of Actions: Utility actions.
لا تنتمي إلى sharepoint.stackexchange