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 Automate / Flow NOT starting by a...
Power Automate
Unanswered

Flow NOT starting by an OnSuccess form trigger

(0) ShareShare
ReportReport
Posted on by 288

Hi everyone,

 

I'm in the testing phase of an app. and having some question-marks... my question is: why is my FLOW not running? It's a V2 Power apps flow with this Form OnSuccess condition:

 

Set(varPurchases, Form_EditRequest.LastSubmit);

If(varPurchases.Department <> Self.LastSubmit.Department,"flow-name".Run(Form_EditRequest.LastSubmit.ID) );

 

So I've tried it 5 times and it doesn't run.

It works for cases where I put counter, like ColumnValue + 1, but it won't run a Flow trigger.

 

Department is column name in SP List.

 

Initial state:

NidjoJohnny22_0-1678119662406.png

 

 

 

 

 

 

 

 

Final state:

NidjoJohnny22_1-1678119721566.png

 

Does anybody have experience with such problem?

 

If nothing else, I'll have to re-locate the Flow to run not on Form OnSucces property, but on button with SubmitForm(), 

 

Like this, if the SubmitForm is true, then fire the Flow trigger:

NidjoJohnny22_2-1678120087198.png

 

does anybody know how can I nest if's inside? I'd like to fire a list of conditionals and whichever is true, to go with that one.

 

Thank you in advance!

 

- Nikola

 

 

 

 

 

Categories:
I have the same question (0)
  • v-jefferni Profile Picture
    on at

    Hi @NidjoJohnny22 ,

     

    If there is only one Form, then varPurchases.Department <> Self.LastSubmit.Department will always return false because varPurchases = Self.LastSubnmit

     

    If you would like to detect differences between the old data and last submitted data, you need to set the variable when opening the form's screen or selecting an item in a Gallery:

    Set(varPurchases, ThisItem);

     

    For the last question, I cannot understand what you mean. SubmitForm is an operation and will return the results of Failed or Successful. For nested If statements, they look like:

    If(
     Condition1,
     Flow.Run(PARAMETER1),
     If(
     Condition1,
     Flow.Run(PARAMETER2),
     If(
     Condition3,
     Flow.Run(PARAMETER3),
     If(
     Condition4,
     Flow.Run(PARAMETER4)
     )
     )
     )
    )

     

    Best regards,

  • NidjoJohnny22 Profile Picture
    288 on at

    @v-jefferni okay, I think I already have a variable which defines this item when entering it. I will use that one, so how should it look like?

     

    Like this: "varPurchases.Department <> Self.LastSubmit.Department", only with variable differently set?

     

    the other one with if's I was heading into a wrong direction, basically I can do that with OnSuccess form... I would like to fire a lot of actions which depend each separately on its condition - and for sure it cant be done with if's all together... I've realized it too soon. 

    So OnSuccess it will be

     

    ...department <> lastsubmit.department : do this

    ...centernumber <>lastsubmit.centernumber : do that

     

    etc. 

  • Verified answer
    v-jefferni Profile Picture
    on at

    Hi @NidjoJohnny22 ,

     

    Question1: correct, use the variable name that includes old data to compare with last submitted data as the condition. So, it would be (OnSuccess):

    If(
     varPurchases.Department <> Self.LastSubmit.Department,
     do 1,
     varPurchases.centernumber <> Self.lastsubmit.centernumber,
     do 2,
     varPurchases.Other <> Self.lastsubmit.Other,
     do 3,
     do 4 //default action if none above meet
    )

     

    Be noted that only one action will be fired in this If statement.

     

    Best regards,

  • NidjoJohnny22 Profile Picture
    288 on at

    Yes that is the bad side with if nesting, only one action fires... which is not good for this case 🙂 I've done it within OnSuccess, it works great now!

     

    Thank you for fast reply, you helped me a lot!

     

    NidjoJohnny22_0-1678184063709.png

     

    It works now! 😄 

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 Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 522 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 364 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard