I've been following a tutorial to create a flow for my PowerApp that updates the status of my form and then sends an email to the users identified within the form. The PowerApps (V2) gathers a number input called getItem which is then used in the subsequent steps.

This is the code I use to try and run the flow OnSuccess of the form: FlowName.Run(Form1.LastSubmit.ID);
However, whenever I test my power app, the flow is not triggered and there are no occurrences listed in the run history. Any suggestions on what can be done to get the flow to be triggered?
Thanks!
Tash