cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
sudosaurus
Post Partisan
Post Partisan

Parsing FirstName from Email address?

Hello,

 

I have the below flow setup for when an email hits a shared mailbox, a SharePoint Online item is created in a list and if any attachments are added to the email these are also added to the list.

 

We have a part of this that sends an email back to the requester and in the body of the email I have a section where it says:

 

"Hello [Requester.DisplayName]"

 

When the email is received the body says "Hello John Smith" - can the [Requester.DisplayName] field be parsed to only display the first name to make the response more personal?

 

flow.png

 

requester.png

1 ACCEPTED SOLUTION

Accepted Solutions
v-bacao-msft
Community Support
Community Support

 

Hi @sudosaurus ,

 

Maybe you could use Get user profile to get first name.

144.PNG

Hope this helps.

 

Best Regards,

Community Support Team _ Barry
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

10 REPLIES 10
Pstork1
Dual Super User III
Dual Super User III

Use something like the following:

First(Split(Requestor.DisplayName,' '))

Build it out using the Expression tab of dynamic content.  The Requestor.DisplayName will be replaced with the appropriate JSON when you pick it from dynamic content. 



-------------------------------------------------------------------------
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

It says the expression is invalid when I try that??

Hi @sudosaurus ,

 

please show how did you modify the function.

(@Pstork1 said: "Build it out using the Expression tab of dynamic content.  The Requestor.DisplayName will be replaced with the appropriate JSON when you pick it from dynamic content. ")

I am not too familiar with how to do the expression.

 

I literally just copied in what he put in his last reply and that didnt work.

Well you have been instructed what to do.

I tried that and it didn't work.

Tried what? How did you modify 

First(Split(Requestor.DisplayName,' '))

Please show your version. 

Pstork1
Dual Super User III
Dual Super User III

Please cut and paste what you have in the Expression tab here so we can see what you have.  Then we can explain why it says the formula is invalid.



-------------------------------------------------------------------------
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.
v-bacao-msft
Community Support
Community Support

 

Hi @sudosaurus ,

 

Maybe you could use Get user profile to get first name.

144.PNG

Hope this helps.

 

Best Regards,

Community Support Team _ Barry
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

Thank you @v-bacao-msft  for the solution! 🙂

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

M365 768x460.jpg

Microsoft 365 Collaboration Conference | December 7–9, 2021

Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.

Users online (2,188)