Announcements
I have a flow that I'm trying to run from the Custom Page App OnStart event. I'm creating a collection with the response from my flow:
ClearCollect(
collection1,
ForAll(
Table(ParseJSON(flowname.Run().body)),
{
Field1Name: Text(Value.Field1Name),
Field1ID: Text(Value.Field1Id),
Field2Name: Text(Value.Field2Name),
Field2ID: Text(Value.Field2Id)
}
)
);
The collection is created, but there is no data. When I check the flow history, it says that it hasn't been run. I've tried running this on the OnVisible event for the screen, but I also get the same result. However, when I click a button with the same code, it works.
My options are
If there are other options, please let me know. Otherwise, 1 or 2 would be preferred.
Hello. I added the Custom Page and ran it from my app instead of preview and the flow was triggered. Thanks for your help!
Thanks for responding. I didn't try that option because of the latency added to loading my Custom Page.
Hi MZ_980,
Maybe it's just because of the preview:
https://sachinbansal.blog/2018/05/22/powerapp-canvas-onstart-event-does-not-fire-in-app-preview/
Hi,
It is because of async behaviour i would suggest to go with 4 option.
But can you try using wait as described below:
https://debajmecrm.com/how-to-introduce-delay-or-wait-in-actions-in-power-apps-canvas-apps/
André Arnaud de Cal... 291,359 Super User 2024 Season 2
Martin Dráb 230,370 Most Valuable Professional
nmaenpaa 101,156