cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Advocate II
Advocate II

Submit new form and start flow

Dear All,

 

I am using my Powerapps to start a flow with the Powerapps trigger.

Normally I use the formula from an existing "ticket" in Powerapps with a formula like this: CLRformSubmited.Run(TemplateGalleryList2.Selected.ID);SubmitForm(Form6_1);ViewForm(Form6_1).

 

So right now I use the selected ID from the Template Gallery, This works.

 

But right now I am trying to create the same action for a new ticket, so I probably have to use a Run(Form1.(....));SubmitForm(Form6_1). Can someone help me fill in the dots? (Powerapps ask me for Run(GetItem_ID)

 

Thanks!

Ramon

1 ACCEPTED SOLUTION

Accepted Solutions
Super User III
Super User III

@Ramonnooijen 

You can use the LastSubmit property of a form to retrieve the most recent ID number submitted from the form.

 

I would suggest you use this code in the OnSelect property of the form's submit button

SubmitForm(Form6_1)

 

Then use this code in the OnSuccess property of the form.  This will ensure the Flow only triggers if the form submission is successful.

CLRformSubmited.Run(Form6_1.LastSubmit.ID);

 

---
Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up." 

View solution in original post

2 REPLIES 2
Super User III
Super User III

@Ramonnooijen 

You can use the LastSubmit property of a form to retrieve the most recent ID number submitted from the form.

 

I would suggest you use this code in the OnSelect property of the form's submit button

SubmitForm(Form6_1)

 

Then use this code in the OnSuccess property of the form.  This will ensure the Flow only triggers if the form submission is successful.

CLRformSubmited.Run(Form6_1.LastSubmit.ID);

 

---
Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up." 

View solution in original post

@mdevaney,

 

Thanks a lot! this fixed my issue 🙂

 

 

Helpful resources

Announcements
New Badges

New Solution Badges!

Check out our new profile badges recognizing authored solutions!

New Power Super Users

Congratulations!

We are excited to announce the Power Apps Super Users!

Power Apps Community Call

Power Apps Community Call: February

Did you miss the call? Check out the Power Apps Community Call here.

Microsoft Ignite

Microsoft Ignite

Join digitally, March 2–4, 2021 to explore new tech that's ready to implement. Experience the keynote in mixed reality through AltspaceVR!

Top Solution Authors
Top Kudoed Authors
Users online (72,737)