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
MPA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

MSFTBizAppsLaunchEvent

Experience what’s next for Power Virtual Agents

See the latest Power Automate innovations, updates, and demos from the Microsoft Business Applications Launch Event.

New Super Users

Meet the Power Automate Super Users!

Many congratulations to the Season 1 2021 Flownaut Crew!

Power Platform ISV STudio

Power Platform ISV Studio

ISV Studio is the go-to Power Platform destination for ISV’s to monitor & manage applications post-AppSource publish.

Top Solution Authors
Users online (63,477)