I have a powerapp that currently passses the record ID and other variables to a flow when a button is clicked. It works fine.
I had a request today, that needs me to add another call to a flow when that same button is clicked.
When the second flow runs, the Record ID that is passed is the next record in Sharepoint list, not the record ID that appears in my PowerApp.
For example, I want to approve record ID 17. First flow is passed 17. Second flow is passed 18, it needs to be 17.
Here's the OnSelect statement
Here's the flow:
Solved! Go to Solution.
Hi @mistysmith ,
Where do you put your 'MDMCustUIShiToGroupUAT'.Run(...) formula within your app?
Based on the formula you provided, I could not find any syntax error error with it. Please consider take a try with the following workaround:
Set the OnSelect proeprty of the Button to following:
Set(CurrentID, ThisItem.ID); /* <-- Add formula here */ UpdateContext({NewWFStatus: If(...)}); .... .... 'MDMCustUIAppUAT'.Run(CurrentID, "Approved", esmaComment.Text, vAppID, vIsUAT);
'MDMCustUIShiToGroupUAT'.Run(CurrentID, vAppID);
...
...
Please consider take a try wiht above solution, check if the issue is solved.
Best regards,
Hi @mistysmith ,
Where do you put your 'MDMCustUIShiToGroupUAT'.Run(...) formula within your app?
Based on the formula you provided, I could not find any syntax error error with it. Please consider take a try with the following workaround:
Set the OnSelect proeprty of the Button to following:
Set(CurrentID, ThisItem.ID); /* <-- Add formula here */ UpdateContext({NewWFStatus: If(...)}); .... .... 'MDMCustUIAppUAT'.Run(CurrentID, "Approved", esmaComment.Text, vAppID, vIsUAT);
'MDMCustUIShiToGroupUAT'.Run(CurrentID, vAppID);
...
...
Please consider take a try wiht above solution, check if the issue is solved.
Best regards,
The code I had was in the OnSelect for the button.
I set CurrentID and passed that and it works now.
Any idea why it would change to the next number in the list though??
User | Count |
---|---|
183 | |
124 | |
88 | |
45 | |
43 |
User | Count |
---|---|
247 | |
156 | |
127 | |
78 | |
73 |