I am running a HTTP POST action from MS Flow to get a bearer token from a Salesforce app:
but it always fails with the following error: "request error: invalid_client_id"
I have checked & rechecked all the id's & secrets etc and they are all correct, if I make the call via Postman it all works as expected but using exactly the same parameters in Flow, it fails.
Guessing there is a subtle change needed somewhere to get it working in MS Flow?
Any help appreciated !
@tiprat I see you're making calls to Saleforce.
Have you tried using the pre-built Salesforce connector? We use it for a number of flows and it is definitely one of the richest connectors today in Flow in terms of the different methods you can use and objects you can access.
I would highly recommend try using that instead of writing your own calls and this should solve any issues.
This is one of the few cases where its better just to start in Flow and not build it in Postman beforehand.
Hope this helps,
Yeah SF connector works well, just wondering more in principle why it fails in Flow when works in other applications etc & best way to troubleshoot these issues when seem specific to Flow.
@tiprat I would suggest the following.
Create a new flow with a trigger of 'when HTTP record is received'
From Postman, take the flow that works with Salesforce and change the URL to the endpoint of the new flow you set up
Then check the log runs from the new flow and take a look at the output values of the HTTP trigger. There you will see the exact values that are actually sent by Postman and you should be able to copy them to your original flow that you are trying to connect to SF.
Hope this helps
Check out the on demand sessions that are available now!
ISV Studio is designed to become the go-to Power Platform destination for ISV’s to monitor & manage published applications.
Una semana de contenido con +100 sesiones educativas, consultorios, +10 workshops Premium, Hackaton, EXPO, Networking Hall y mucho más!