Hi all,
I created a power pages site, I then created a Power Automate Flow from within the site which generates an API Url which you use in the JS to perform a POST request to initiate the flow. I have also modified the flows run-only permissions to use a specific connection for the, send Outlook email, action.
Test results and conditions:
success: run the flow manually in power automate.
success: have no connections in the flow simply, power pages trigger > if condition > both conditions return values to power pages. Initiated from JS in the power pages site I get a 200 OK and I can view the flow from the run history.
error: I have an action in the flow with a connection, i'm using send an email, initiate the flow from JS in the power pages site and I get a 403 forbidden error in developer tools (F12) and the flow does not even initiate so no entry in the flows run history.