Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Get firstname only from People or groups column

Status
Not open for further replies.

peac3

Technical User
Jan 17, 2009
226
AU
Hi All,

I am trying to send the email from the sharepoint by using the firstname only from group or persons column.

Let's say the fullname is John Smith.

Atm, in the email header it's showing like this:

Code:
Dear Smith, John,

Task has been assigned for you

I would like showing as below:

Code:
Dear John,

Task has been assigned for you

The column name called "Assign To"

The code looks like this:
Code:
Dear [%Current Item:Assign To%],

It looks simple but I can't crack it for few days.
Any help would be appreciated, Thank you...
 
ps: the email coming from a workflow in the list.
 
When you are setting the [%Current Item:Assign To%], change the 'Lookup for String' data source to User Profiles. Then select First Name from the 'Field from source' box.

Doing this, more or less will query the User Profile data source, and you will want to query by your Assign To field.

If needed, I can post a more detailed how-to.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top