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

Two trigger conditions based on specific users

Hello, 

 

it´s my first time here and my first time with MS Power automate. I´m a controler and no informatican. But I hope to digitalisise our invoice process in this way. I hope my request is right here.

 

I have a folder where new invoice in form of pdf files come to. When two specific users have checked (modified) the invoice, it should be copied and moved to two different folders. With one user as trigger condition it works very well

 

I used: @equals(triggerBody()?['Editor']?['Email'], 'user@example.de')

 

but if i want to use two conditions like in the image below it isn´t working.

 

I also tried to use: @And(equals(triggerBody()?['Editor']?['Email'], 'user@example.de'),equals(triggerBody()?['Editor']?['Email'], 'user2@example.de'))

 

but it isan´t working, too.

 

I hope someone can help me. 

 

Thanks and best regards

Marcus  

Trigger Conditions two user.jpg

1 ACCEPTED SOLUTION

Accepted Solutions

Sorry, I misunderstood. It's never going to work how you imagine it. Because the modified field is only ever going to show the last person that modified it.

 

You could have a custom list with tick boxes on two columns instead, like:

 

Initial Check Complete

Secondary Check Complete

 

But if I understand you correctly, I don't think your approach will work and you need to think of a new workflow.

View solution in original post

4 REPLIES 4
Paulie78
Super User III
Super User III

This should do what you want:

or(
  equals(triggerBody()?['Editor']?['Email'], 'user@example.de'),
  equals(triggerBody()?['Editor']?['Email'], 'user2@example.de')
)

See how you get on. 

Hello Paulie78,

 

If I use your suggestion, then the flow starts either when user 1 changes the file or when user 2 changes the file.

But in my case both user have to change the file and only then the flow should start. 

 

Is the problem probably because the column "changed by" shows only the last user who changed the file and don´t save all user who have changed the file? 

Sorry, I misunderstood. It's never going to work how you imagine it. Because the modified field is only ever going to show the last person that modified it.

 

You could have a custom list with tick boxes on two columns instead, like:

 

Initial Check Complete

Secondary Check Complete

 

But if I understand you correctly, I don't think your approach will work and you need to think of a new workflow.

View solution in original post

Thanks for trying to help me. Now I know my first way to find a solution will never work and I have to find a new way. I already have an idea for that. 

Helpful resources

Announcements
MPA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

V3_PVA CAmpaign Carousel.png

Community Challenge - Giveaways!

Participate in the Power Virtual Agents Community Challenge

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

R2 (Green) 768 x 460px.png

Microsoft Dynamics 365 & Power Platform User Professionals

DynamicsCon is a FREE, 4 half-day virtual learning experience for 11,000+ Microsoft Business Application users and professionals.

Top Solution Authors
Users online (1,304)