web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Set email recipient ba...
Power Automate
Unanswered

Set email recipient based on incoming variable from AzureDevOps

(0) ShareShare
ReportReport
Posted on by 18

Hi All,

 

I'm trying to create a flow, where i connect to AzureDevOps (get query results) as my data source, and based on each query result, i want to send an email to a different person.

 

Incoming field i want to use is 'Area Path' from the 'get query results' output for each work item it returns.

 

Something like,

If 'Area Path' = /some hardcoded path value'

  Send email to personA@work.com

else if 'Area Path = '/some other hardcoded path value'

  Send email to personB@work.com

 

Any help is appreciated, thanks in advance

Categories:
I have the same question (0)
  • ScottShearer Profile Picture
    25,270 Most Valuable Professional on at

    @msandico 

    I don't have access to Azure dev ops, but if you can just initialize a string variable and assign a value to the variable in a condition.  If you have a collection of records returned and want individual emails sent for each item, loop through the results and have your condition inside of the loop.

    Please give this a try.  If you have issues, please post a screen shot of your Flow here.

     

  • msandico Profile Picture
    18 on at

    Hey Scott, thanks for the response.

     

    I ended up doing something similar:

    - created a SP list as a lookup table with 2 columns 'Area Path' and 'Email Recipient'

    - in the flow, i initialize 2 variables; 1 for each

    - as it loops through each DevOps work item

    I set the first variable, Area Path, then i use that variable to lookup into the SP list, and grab the Email Recipient (store in second variable).

    - then i send the email using the Email Recipient variable.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 519 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 296 Moderator

#3
abm abm Profile Picture

abm abm 232 Most Valuable Professional

Last 30 days Overall leaderboard