I have no idea what I'm doing wrong but I can't seem to trigger my flow from my app. I created a flow in flow then I went into my app, attached the flow to a button (Code below). When I try to test the flow from my app, it always fails. It does recognize the flow was started in flow but the "start an approval" email never gets sent out.
Picture #1: My flow setup.
Picture #2: What a flow started from my app looks like.
Picture #3: What I see if I press edit on a flow from my app.
Picture #4: When I go into flow and select "test flow" I can use the exact same data that failed earlier and the email gets sent and everything works as expected. The cancelled/running flows are the ones I started natively from the app.
Here is the code to execute the flow.
Sendapprovalandfollowupviaemail.Run("firstname.lastname@example.org",User().Email,If(Toggle1.Value,User().FullName & "wants to create a new position.",
User().FullName & "wants to hire a new employee"),Depo.Selected.Value,If(Toggle1.Value,PT.Text,ExtPosition.Selected.Result),report2.Text,area.Text,Pay10.Text,Today(),employment.Selected.Value,classification.Selected.Value,jobcategoryclass.Selected.Value)