cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
mariliu
Regular Visitor

Cannot use "Created by" from Azure DevOps as a valid receiver in "Send an Email" action

I want to send an email to a user who creates new Azure DevOps work item. However, by using "Created by", the flow does not work. It seems that flow cannot recognize the "Created by" as a valid email address. 

 

I have tried different actions, including "send an email", "send an email (V2)". Same issue. 

 

Part of my flow

Error message

1 ACCEPTED SOLUTION

Accepted Solutions
v-bacao-msft
Community Support
Community Support

Hi @mariliu ,

 

I did a test on my side. Created By contains not only the email address, but also the Display Name of the user.

Like:

20.PNG

You coule use the Expression below to remove extra parts and leave a valid email address.

Expression reference:

replace(last(split(triggerBody()?['fields']?['System_ChangedBy'],'<')),'>','')

Image reference:

21.PNG

 

Please take a try again.

 

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

2 REPLIES 2
v-bacao-msft
Community Support
Community Support

Hi @mariliu ,

 

I did a test on my side. Created By contains not only the email address, but also the Display Name of the user.

Like:

20.PNG

You coule use the Expression below to remove extra parts and leave a valid email address.

Expression reference:

replace(last(split(triggerBody()?['fields']?['System_ChangedBy'],'<')),'>','')

Image reference:

21.PNG

 

Please take a try again.

 

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! Although I don't understand that expression, I just copied and pasted your reference into my Flow, and it worked. Appreciate your answer, Barry!

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.

Top Solution Authors
Top Kudoed Authors
Users online (3,333)