cancel
Showing results for 
Search instead for 
Did you mean: 

Blue Prism integration with ALM API

MalarvizhiLogan
Level 2

Hi All,

I'm trying to integrate ALM API (3rd party tool) with Blue Prism, to automate the creation/deletion of user. I have created a service in BP web API service and created few actions like Login ALM and getting user details from ALM, able to connect ALM API and getting status as 200 and getting the below token as well.
1.LWSSO_COOKIE_KEY
2.QCSession
3.ALM_USER
4.XSRF-TOKEN

But when i tried to run the Get User query, getting some authentication error here i'm using the same query which is running fine in postman. Could you please help me on this.

Please suggest how we can pass the session token while running Get User action.

Thanks in Advance.



------------------------------
Thanks & Regards,
Malarvizhi Loganathan
------------------------------
6 REPLIES 6

Hi Malarvizhi,

A screenshot of your POSTMAN vs Blue Prism configuration will greatly help to debug this.



------------------------------
Shashank Kumar
DX Integrations Partner Consultant
Blue Prism
Singapore
+6581326707
------------------------------

Hi Shashank,

Thanks for the response. Please find the attached screenshots from Postman and Blue Prism.

For Login ALM in BP, we are passing header as content-type: application/json.

Please help on how to pass header for calling get user action.



------------------------------
Malarvizhi Loganathan
------------------------------

Hi Malarvizhi,

Just to clarify, you are able to run the login action via Blue Prism and Get user action is failing. Is this correct?



------------------------------
Shashank Kumar
DX Integrations Partner Consultant
Blue Prism
Singapore
+6581326707
------------------------------

Yes, correct Shashank. Getting below error while running get user action.

Internal : Unexpected error Error during Web API HTTP Request
HTTP Status Code: 401
HTTP Response Content: <html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>
<title>Error 401 Authentication failed. Browser based integrations - to login append &apos;?login-form-required=y&apos; to the url you tried to access.</title>
</head>
<body><h2>HTTP ERROR 401</h2>
<p>Problem accessing /qcbin/v2/sa/api/site-users/UserID. Reason:
<pre>    Authentication failed. Browser based integrations - to login append &apos;?login-form-required=y&apos; to the url you tried to access.</pre></p>
</body>
</html>



------------------------------
Malarvizhi Loganathan
------------------------------

Hi Malarvizhi ,

You will have to call the login action from a Blue Prism process. You will get the response tokens in Data Items of the process. 

From the process then call the Get user action passing in the required tokens as parameters.

Have you included the same headers as POSTMAN in Get user action of Blue Prism?



------------------------------
Shashank Kumar
DX Integrations Partner Consultant
Blue Prism
Singapore
+6581326707
------------------------------

Hi Shashank,

Thanks for the response.

In BP, doing the same what you have suggested but getting auth error.

In POSTMAN, we are not passing any header. It's automatically connecting to the session created while login.



------------------------------
Thanks & Regards,
Malarvizhi Loganathan
------------------------------