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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Best way to trigger se...
Power Apps
Unanswered

Best way to trigger separate automations on successful form submission depending on data being updated

(0) ShareShare
ReportReport
Posted on by 40

I have a Power App that uses Power Automate to send an email to specific people when a item is created or updated in the SharePoint list. This works well as is, but I have a new requirement to make it so that when certain fields that are only visible to admins are updated, it does not send those emails, even though those fields are part of the same share point list.

 

Would it be feasible to add a second button that can only be seen by admins and have them each trigger separate flows on successful form submission? If so, what would be the best way to do this?

 

 

Categories:
  • Ethan_009 Profile Picture
    4,840 Moderator on at

    Hi @mgm05e ,

     

    You can check the Logged In User by comparing their emails,

    Reference Doc: For your button on triggering the Flow. You can separate your run as follows:

     

    //Conditions for 1 button only
    
    If(User().Email = "admin@mycompany.com",
     AdminFlow.Run()
     ,
     UserFlow.Run()
    )
    //You can separate using different buttons as well, so Add condition into Vibisle property
    

     

    For knowing when Form is submitted successfuly, use IfError() function

    IfError(
     SubmitForm(Form1);
     ,
     Notify("Error");
     false;
     ,
     Notify("Success");
     //Trigger flow or anything upon success
     true;
    )

     

    Hope this helps

  • zematsirhc Profile Picture
    90 on at

    Why not setup a try-catch situation?

     

    Step 1: when an item is created in a SharePoint List

    Step 2: create a variable that stores the outcome of one of these columns

    Step 3: conditional statement: if the variable is blank then send emails other wise end flow.

     

    That way the user doesn't have to know the difference.

     

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 236 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 188 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 130

Last 30 days Overall leaderboard