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
- Trigger the flow from App OnStart (optimal)
- Trigger the flow from the Screen OnVisible (good)
- Trigger the flow by hiding the button and have either the App OnStart or Screen OnVisible event simulate the button OnSelect event. (Hacky)
- Trigger the flow from the visible button. (Last resort)
If there are other options, please let me know. Otherwise, 1 or 2 would be preferred.