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.

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
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

Power Automate Designer Feedback_carousel.jpg

Help make Flow Design easier

Are you new to designing flows? What is your biggest struggle with Power Automate Designer? Help us make it more user friendly!

Top Solution Authors
Users online (4,061)