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 Apps / Powerapps trigger Flow...
Power Apps
Unanswered

Powerapps trigger Flow onNew and onCancel

(0) ShareShare
ReportReport
Posted on by

Hello there,

 

I have customized forms and have an issue with the trigger of flow in Powerapps where I trigger flow onNew in SharePoint integration and on cancel.

 

I want that flow to be run only when the form is in newform mode means the SharePoint form is in new mode but not in edit mode.

 

Issue :
- Flow trigger both on New and On Edit which is I don't want

 

IT would be great if you share your experience to not trigger flow on Edit form.


Regards,

Manoj Roy

 

 

 

 

Categories:
I have the same question (0)
  • BCBuizer Profile Picture
    22,505 Super User 2025 Season 2 on at

    HI @manojrohit16 ,

     

    Can you share how you currently trigger the flow?

  • manojrohit16 Profile Picture
    on at

    Please find the attachment.

     

    I have an issue with on cancel where I want that if form mode is in form mode.new then only flow trigger not on EDIT.

     

    Regards,

  • BCBuizer Profile Picture
    22,505 Super User 2025 Season 2 on at

    Hi @manojrohit16 ,

     

    In the code for OnCancel, you need to replace NewForm(SharePointForm1) with FormMode.New:

     

    If(SharePointForm1.Mode = FormMode.New, ********)
  • manojrohit16 Profile Picture
    on at

    Yes, I did it but not working on it.

  • BCBuizer Profile Picture
    22,505 Super User 2025 Season 2 on at

    Can you share a screenshot? What is not working now?

     

    Edit: Also change the order: first the If statement and then the ResetForm

  • manojrohit16 Profile Picture
    on at

    The problem is whenever I keep the condition on form mode of new it also works on form mode of edit.

  • manojrohit16 Profile Picture
    on at

    I did this but not work.

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 Apps

#1
WarrenBelz Profile Picture

WarrenBelz 721 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 320 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard