cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Marc10
Frequent Visitor

Triggercondition that a copied flow only runs for the exceuting user

Hi,

I am currently building a flow which triggers if an Element is created in a Sharepoint list. This flow was copied and shared with all my team members. The problem is that if Member A initiates the flow, the flow also runs for every other member of the team, because they all share the same conditions.
I cannot figure out a way to prevent this from happening.

I thought it might be possible to set a triggercondition which checks, if the creator of the element equals the flow owner, thus only running the flow for the person who created the element. But I am not sure if this possible, or how the condition should look like.

 

Maybe someone has had a similiar problem or even a solution?

 

Best regards,

 

Marc

2 REPLIES 2
zmansuri
Super User
Super User

@equals((triggerOutputs()?['body/Created/Email'],HardCodeFlowOwnerEmailID)

if email matches with flow owner it will run

Marc10
Frequent Visitor

Thanks for the fast answer.

With "HardCodeFlowOwnerEmailID" you mean that I should add the personal E-Mail for every user by hand, right?
I thought I might be able to avoid customizing every copy of the flow for each user by using a dynamic value which automatically checks if the user and the flow owner are the same person. Or is this simply not possible?

Helpful resources

Announcements
MPA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Welcome Super Users.jpg

Super User Season 2

Congratulations, the new Super User Season 2 for 2021 has started!

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.

Users online (1,667)