Resource PC Commands - outputs
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
20-07-22 09:19 AM
Hi guys,
does anyone of you was using the outputs command from Ressource PC Commands?
My goal is to get termination reason for a session without accessing database.
From the command description it should be doable, but when I execute it on various session ids, I'm receiving the response: SESSION NOT FOUND. The session id can be found in database though...
The only case, when it worked is when I create and run a session using PC Commands, then output for the session is found.
Is there any limitation for outputs? For example: it's only applicable for sessions created via Resource Commands? Or am I missing something?
Best,
Ł
------------------------------
Łukasz Kiciak
RPA Developer
UI
Europe/London
------------------------------
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
26-07-22 11:54 PM
Thank you for contacting the Blue Prism community.
Can you please provide a sample command you use and also the snapshot?
------------------------------
Hossein Azimi
Customer Support Engineer, APAC
Blue Prism
Sydney NSW
------------------------------
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
27-07-22 01:59 PM
Hi Hossein,
sure!
The request looks as follows:
http://{myResource}:8181/user name {myUserName}&password {myPassword}&outputs {mySessionID}
Variables in curly braces are replaced with valid and existing values.
Best,
Ł
------------------------------
Łukasz Kiciak
RPA Developer
UI
Europe/London
------------------------------
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
27-07-22 05:30 PM
http://{Resource IP}:8181/user name {USERNAME} password {PASSWORD}&outputs {SESSION ID}
It looks like you have the '&' in the wrong spot - meaning there should not be an ampersand before password.
Cheers,
------------------------------
Eric Wilson
Director, Integrations and Enablement
Blue Prism Digital Exchange
------------------------------
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
28-07-22 12:49 PM
thanks for your feedback!
Unfortunately it's not the case for me. Without ampersand before password I cannot authenticate the user.
Full response for: http://{myResource}:8181/user name {myUserName}&password {myPassword}&outputs {mySessionID}
USER SET USER AUTHENTICATED SESSION NOT FOUNDFull response for: http://{Resource IP}:8181/user name {USERNAME} password {PASSWORD}&outputs {SESSION ID}
USER SET USER NOT SET
Currently I'm using BP version 6.6.
Best,
Ł
------------------------------
Łukasz Kiciak
RPA Developer
UI
Europe/London
------------------------------
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
28-07-22 02:14 PM
USER SET
OUTPUTS:<outputs><output name="Final Loop Count" type="number" value="3" /></outputs>
If I add the ampersand before password then I get this output:
USER SET
USER AUTHENTICATED
OUTPUTS:<outputs><output name="Final Loop Count" type="number" value="3" /></outputs>
Have you tried breaking this up into two separate requests? In other words, send the user name password combination in the first request which should render the USER SET and USER AUTHENTICATED responses. Then immediately send the outputs {session id} request.
Cheers,
------------------------------
Eric Wilson
Director, Integrations and Enablement
Blue Prism Digital Exchange
------------------------------
