cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
PaulinoV
Microsoft
Microsoft

Trigger Automate only when certain users create a work item

Hi community,

 

Can you help me out with this: I'm building this flow, when an Epic is created (by certain users) with a particular tag, create X work items:

 

Now, I do have the Tag condition OK, but I can't figure how to approach the user list (5 users) I know there's a field for Created By in the trigger but can I add multiple values?

 

Screenshot 2021-07-14 124317.png

 

Can someone lend me a light please? 

 

 

2 ACCEPTED SOLUTIONS

Accepted Solutions
Expiscornovus
Dual Super User
Dual Super User

Hi @PaulinoV,

 

You could add the following expression to the trigger condition action in the settings:

Replace the 5 test e-mail addresses by the ones of your 5 users.

 

@or(contains(triggerOutputs()?['body']['fields']['System_CreatedBy'], 'test1@contoso.onmicrosoft.com'), contains(triggerOutputs()?['body']['fields']['System_CreatedBy'], 'test2@contoso.onmicrosoft.com'), contains(triggerOutputs()?['body']['fields']['System_CreatedBy'], 'test3@contoso.onmicrosoft.com'), contains(triggerOutputs()?['body']['fields']['System_CreatedBy'], 'test4@contoso.onmicrosoft.com'), contains(triggerOutputs()?['body']['fields']['System_CreatedBy'], 'test5@contoso.onmicrosoft.com'))

 

triggercondition_azuredevops.png

View solution in original post

PaulinoV
Microsoft
Microsoft

@Expiscornovus This worked like a charm! Thanks

View solution in original post

2 REPLIES 2
Expiscornovus
Dual Super User
Dual Super User

Hi @PaulinoV,

 

You could add the following expression to the trigger condition action in the settings:

Replace the 5 test e-mail addresses by the ones of your 5 users.

 

@or(contains(triggerOutputs()?['body']['fields']['System_CreatedBy'], 'test1@contoso.onmicrosoft.com'), contains(triggerOutputs()?['body']['fields']['System_CreatedBy'], 'test2@contoso.onmicrosoft.com'), contains(triggerOutputs()?['body']['fields']['System_CreatedBy'], 'test3@contoso.onmicrosoft.com'), contains(triggerOutputs()?['body']['fields']['System_CreatedBy'], 'test4@contoso.onmicrosoft.com'), contains(triggerOutputs()?['body']['fields']['System_CreatedBy'], 'test5@contoso.onmicrosoft.com'))

 

triggercondition_azuredevops.png

PaulinoV
Microsoft
Microsoft

@Expiscornovus This worked like a charm! Thanks

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.

May UG Leader Call Carousel 768x460.png

June User Group Leader Call

Join us on June 28 for our monthly User Group leader call!

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
Top Kudoed Authors
Users online (3,200)