API Auth Token issue
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
02-08-22 10:10 AM
I have an API where I am trying to obtain the Access Token, I have the collection in Postman which is working fine but I am unable to make this work in Blue Prism.
I am not sure if it is because it uses FormData to obtain token but BP does not like it, I have tried multiple ways and get the error messages of 400, or the output is not a JSON response.
I am using BP 6.7.
Any assistance would be greatly appreciated.
Thank you
Matt
------------------------------
matthew Cable
Consultant
Zurich
Europe/London
------------------------------
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
02-08-22 01:07 PM
------------------------------
Shashank Kumar
DX Integrations Partner Consultant
Blue Prism
Singapore
+6581326707
------------------------------
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
02-08-22 01:25 PM
Hi Shashank,
I have tried lots of different things, I have attached a word document with screen shots of the Web API that I have used. and also the instructions on how to connect from the API provider.
Also please see screen shot below of error from the process.
Thank you
------------------------------
Matthew Cable
Consultant
Zurich
Europe/London
------------------------------
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
02-08-22 01:39 PM
Set the Body Template as
resource=[resource]&grant_type=client_credentials&client_id=[client_id]&client_secret=[client_secret]
Set the Header as
Content-Type application/x-www-form-urlencoded
Remove the response parameter for now and see if you are getting the response. And the parameters in URL should be enclosed in square brackets.. [tenant]
------------------------------
Shashank Kumar
DX Integrations Partner Consultant
Blue Prism
Singapore
+6581326707
------------------------------
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
02-08-22 02:09 PM
I have tried the above and now i receive the error message below
------------------------------
Matthew Cable
Consultant
Zurich
Europe/London
------------------------------
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
02-08-22 05:54 PM
Sorry I got a bit confused after re-looking at your post. Are you doing a GET or a POST request from POSTMAN and what is the Content-Type, form-data or x-www-form-urlencoded?
------------------------------
Shashank Kumar
DX Integrations Partner Consultant
Blue Prism
Singapore
+6581326707
------------------------------
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
03-08-22 08:37 AM
I have amended this to POST and it now works.
Thank you very much for your help.
------------------------------
Matthew Cable
Consultant
Zurich
Europe/London
------------------------------
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
22-09-23 11:52 AM
Hi Matthew,
How did you resolve this issue and obtain the Access Token in Blue Prism. can you please let me know
I am also facing the same issue,
Thank you
------------------------------
Revathi A
------------------------------
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
23-09-23 01:38 AM
Regards,
------------------------------
Leonardo Soares
RPA Developer Tech Leader
Bridge Consulting
América/Brazil
------------------------------
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
25-09-23 09:24 AM
Hi Leonardo Soares
I am trying to get the access token through blue prism
I have the form data collection in postman which is working fine but i m unable to make this work in blur prism
Please refer this screenshot and let me know if you have solution for this.
------------------------------
Revathi A
------------------------------
