cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
m0le
Level: Powered On

Publishing form on SharePoint list with approval

Hi Team 

I have simple form which add laptops to SharePoint list
Form > SharePoint List

 

I have created a simple approval flow based on template. 

 

But no matter if I approve the laptop or not the power app add it to SharePoint list strait forward. 


How do I add something like MS flow in the middle that Laptop will be not added to the list until it`s approved?

It`s like I need to place flow in the middle of the process

 

Power app form > Flow > SharePoint list ??

 

Or is the other way to do it?


I have tried the Approval system on the SharePoint end but it`s making it worse for edit later.

1 ACCEPTED SOLUTION

Accepted Solutions
Community Support Team
Community Support Team

Re: Publishing form on SharePoint list with approval

Hi @m0le,

Do you want to add a approval flow in the middle of the process?

Do you not want to add a new Laptop record into your SP list directly until the record is approved by the approver?

Based on the needs that you provided, I think the PowerApps Button Trigger could achieve your needs.

You could consider fire a flow from your app when you click the "Submit" button, then pass corresponding Laptop Info (e.g. Username, Model, Office, Location/Status, etc) into your flow. After that, within your flow, display the passed Laptop info within the Approval email, if the approver approved your request, create a new item within your SP list, otherwise, do nothing.

I have made a test on my side, please take a try with the following workaround:

Flow's configuration:5.JPG

 

6.JPGMore details about specifying parameters that you want to pass from your app within your flow, please check the attached GIF screenshot:

 

App's configuration:7.JPG

Set the OnSelect proeprty of the "Submit" button to following:

'20181129_case5_1'.Run(
DataCardValue7.Text,
DataCardValue8.Text,
DataCardValue9.Selected.Value,
DataCardValue10.Selected.Value,
DataCardValue11.Selected.Value,
DataCardValue12.Text
)

On your side, you should type:

'YourFlowName'.Run(
       DataCardValue7.Text,  /* Specify proper values for corresponding arguments of the 'YourFlowName'.Run() function*/
       DataCardValue8.Text,
       DataCardValue9.Selected.Value,
       DataCardValue10.Selected.Value,
       DataCardValue11.Selected.Value,
       DataCardValue12.Text
)

More details about starting a flow from an app, please check the following article:

Start a flow from an app

 

Best regards,

Kris

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

1 REPLY 1
Community Support Team
Community Support Team

Re: Publishing form on SharePoint list with approval

Hi @m0le,

Do you want to add a approval flow in the middle of the process?

Do you not want to add a new Laptop record into your SP list directly until the record is approved by the approver?

Based on the needs that you provided, I think the PowerApps Button Trigger could achieve your needs.

You could consider fire a flow from your app when you click the "Submit" button, then pass corresponding Laptop Info (e.g. Username, Model, Office, Location/Status, etc) into your flow. After that, within your flow, display the passed Laptop info within the Approval email, if the approver approved your request, create a new item within your SP list, otherwise, do nothing.

I have made a test on my side, please take a try with the following workaround:

Flow's configuration:5.JPG

 

6.JPGMore details about specifying parameters that you want to pass from your app within your flow, please check the attached GIF screenshot:

 

App's configuration:7.JPG

Set the OnSelect proeprty of the "Submit" button to following:

'20181129_case5_1'.Run(
DataCardValue7.Text,
DataCardValue8.Text,
DataCardValue9.Selected.Value,
DataCardValue10.Selected.Value,
DataCardValue11.Selected.Value,
DataCardValue12.Text
)

On your side, you should type:

'YourFlowName'.Run(
       DataCardValue7.Text,  /* Specify proper values for corresponding arguments of the 'YourFlowName'.Run() function*/
       DataCardValue8.Text,
       DataCardValue9.Selected.Value,
       DataCardValue10.Selected.Value,
       DataCardValue11.Selected.Value,
       DataCardValue12.Text
)

More details about starting a flow from an app, please check the following article:

Start a flow from an app

 

Best regards,

Kris

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

Helpful resources

Announcements
firstImage

Microsoft Business Applications Virtual Launch Event

Join us for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

firstImage

Demo Extravaganza Championship Voting Open

Voting Ends: October 30, 2019!

firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

FirstImage

Power Platform World Tour

Coming to a city near you

thirdimage

PowerApps Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

FourthImage

Join PowerApps User Group!!

Connect, share, and learn with your peers year-round

Top Kudoed Authors
Users Online
Currently online: 491 members 5,288 guests
Please welcome our newest community members: