cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
savramova
Frequent Visitor

Need help to run a Flow from PowerApps on SharePoint Edit Item Form

I have a Flow for submitting Attachments from existing SharePoint List Item to another Library. The workflow works great, with one issue: it has a big delay of 3-4 minutes until the user submits the attachment to find it in the library, due to the delay of the frequency of Flow checking for changes in a SharePoint list. That's why I am trying to use a PowerApp Form when Editing Item - I need to complete Flow parameters in the formula bar at the PowerApp Action:

PowerAppsbutton.Run(Getitem_ld), then the Item ID is used in the Flow.

I was able to find the item ID with PowerAppsbutton.Run(SharePointForm1.Current.ID), but I am not sure how to combine the Submit Button along with running the Flow at the same time. The attachment is not saved if I have only the Flow without Submit.

I am trying to find a blog post for how to Set the parameters or Collect the information from the current item - the parameter above I found very randomly, browsing on Collect.

Also, it will be great if someone could help how to Submit a SharePoint item and its attachments along with running the Flow in PowerApps.

Thank you!

 

1 ACCEPTED SOLUTION

Accepted Solutions
savramova
Frequent Visitor

Re: Need help to run a Flow from PowerApps on SharePoint Edit Item Form

I was able to make it working using this information:

https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/functions/function-form

Here how the Action Button works for submitting the Item and running the Flow at the same time:

SubmitForm(SharePointForm1); PowerAppsbutton.Run(SharePointForm1.Current.ID)

The Video from Laura Rogers was very helpful, too!

https://www.iwmentor.com/pages/powerapps-customize-list-form

 

View solution in original post

2 REPLIES 2
savramova
Frequent Visitor

Re: Need help to run a Flow from PowerApps on SharePoint Edit Item Form

I was able to make it working using this information:

https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/functions/function-form

Here how the Action Button works for submitting the Item and running the Flow at the same time:

SubmitForm(SharePointForm1); PowerAppsbutton.Run(SharePointForm1.Current.ID)

The Video from Laura Rogers was very helpful, too!

https://www.iwmentor.com/pages/powerapps-customize-list-form

 

View solution in original post

Community Support
Community Support

Re: Need help to run a Flow from PowerApps on SharePoint Edit Item Form

Hi @savramova ,

 

I am glad to see you have found out the workaround.

Also, could you mark your post to be the answer for more members to find it more quickly

 

Best regards,

Sik

Helpful resources

Announcements
MBAS Gallery 2020

MBAS Gallery 2020

Watch Microsoft Business Applications Summit sessions on-demand.

firstImage

New Ranks and Rank Icons released on April 21!

The time has come: We are finally able to share more details on the brand-new ranks coming to the Power Apps Community!

Top Solution Authors
Top Kudoed Authors
Users online (9,497)