I have a PowerApps solution which contains a button flow called Finalize questionaire. The flow triggers when an HTTP request is received. In my dev environment, the flow works perfectly. But when I export the solution into my test environment, the flow fails at a "Get a row by ID" (from Dataverse) step. It thinks that the ID doesn't exist.
It turns out that the button flow is running in the dev environment even when I call it in the test environment. I think that is because the PATCH URL refers to a service that has the Dataverse instance hard-coded. But since I don't have access to the Azure back end, I can't verify or edit that.
How do I fix this problem so that my solution's flow will work whereever my solution is installed?
@JenniferK @ManishJain @ChristianAbata
I have the same issue now. Now I am unable to update the environment variable used for HTTP URL in my managed solution without creating an unmanaged layer. Do any of you guys have any solution for this? Please advise.
Thanks,
Ramesh
The button is one of the new custom buttons that's in preview for model-driven apps. I add it through the "Edit in preview" option for the model-driven app. That looks like this:
Note that the button action is to run a javascript function. The javascript function sends a PATCH request with a record id to a url:
https://psdfsdfsdf.sdfsdfsdf.logic.azure.com:443/workflows/xxxxxxxxxxxxxxxxxxxxxxxx/triggers/manual/paths/invoke?api-version=2016-06-01&sp=%2Ftriggers%2Fmanual%2Frun&sv=1.0&sig=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
That url is the one that was generated when I created the flow.
@ChristianAbata , I don't think that is the issue. The flow does not use any environment variables (I wish!). The Patch URL was automatically generated when I first saved the flow.
For context, the button calling my flow is one of the new custom buttons available in model-driven apps. The button calls a javascript which makes an http request to the PATCH url shown in the flow.
hi @JenniferK when you export yor solution you need to empty your data from flow. Take a look Data Source Environment Variables in Power Platform Solutions - SharePoint - YouTube it works for flows and apps
WarrenBelz
146,605
Most Valuable Professional
RandyHayes
76,287
Super User 2024 Season 1
Pstork1
65,946
Most Valuable Professional