
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.
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:
More details about specifying parameters that you want to pass from your app within your flow, please check the attached GIF screenshot:
App's configuration:
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:
Best regards,
Kris