質問

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:

enter image description here

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:

  1. Set the Display name (same as above image) in a workflow variable.
  2. Find the index of Domain from above variable.
  3. Extract the sub-string from the variable.
  4. 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.

Example: SharePoint Designer Workflow actions - how to get substring from start of variable until character "|"

ライセンス: CC-BY-SA帰属
所属していません sharepoint.stackexchange
scroll top