Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Building 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

 

 

 

 

  • manojrohit16 Profile Picture
    on at
    Re: Powerapps trigger Flow onNew and onCancel

    I did this but not work.

  • manojrohit16 Profile Picture
    on at
    Re: Powerapps trigger Flow onNew and onCancel

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

  • BCBuizer Profile Picture
    22,027 Super User 2025 Season 1 on at
    Re: Powerapps trigger Flow onNew and onCancel

    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
    Re: Powerapps trigger Flow onNew and onCancel

    Yes, I did it but not working on it.

  • BCBuizer Profile Picture
    22,027 Super User 2025 Season 1 on at
    Re: Powerapps trigger Flow onNew and onCancel

    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
    Re: Powerapps trigger Flow onNew and onCancel

    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,027 Super User 2025 Season 1 on at
    Re: Powerapps trigger Flow onNew and onCancel

    HI @manojrohit16 ,

     

    Can you share how you currently trigger the flow?

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,651 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,999 Most Valuable Professional

Leaderboard