cancel
Showing results for 
Search instead for 
Did you mean: 

How to use the action command from Resource PC command

GopalBhaire
Level 10

Hi Team,

I see and 'action' command in a list of Resource PC command list, The description for which is 

Either 'action <sessionid> <actionname>' to run an action on the specified session, or 'action last <actionname>'
to run an action on the last session created on this connection. The response is 'STARTED' or an error code.


From the description I was not able to identify what the command does, if anyone has used it please let me know the purpose of it.

Thanks



------------------------------
Gopal Bhaire
------------------------------
1 BEST ANSWER

Best Answers

ewilson
Staff
Staff
Hi @GopalBhaire,

@John Carter is correct on both points. The documentation is not helpful and the action command is used to run an action on a VBO. So the general steps would be:
  1. Login via the HTTP interface (ex. http://loalhost:8181/user name jdoe&password NotSecure)
  2. Create a new session (ex. http://loalhost:8181/create name MyObject)
    1. There are different forms to this. I find this one is easier as it just takes the name of the VBO as opposed to it's ID.
  3. Call an action on the VBO (ex. http://localhost:8181/action abe74fef-c9db-4992-8e12-07a68d113fd0 MyTestAction)
    NOTE: When you do this in the real world the whitespace between the parts of the URL will be replaced with %20

    Cheers,​​

    ------------------------------
    Eric Wilson
    Director, Integrations and Enablement
    Blue Prism Digital Exchange
    ------------------------------

    View answer in original post

    3 REPLIES 3

    John__Carter
    Staff
    Staff
    It's not the most helpful explanation is it? If I remember correctly it relates to calling a business object via HTTP, where you create a session and get the session ID in return, then use that to call VBO actions.

    ------------------------------
    John Carter
    Professional Services
    Blue Prism
    ------------------------------

    ewilson
    Staff
    Staff
    Hi @GopalBhaire,

    @John Carter is correct on both points. The documentation is not helpful and the action command is used to run an action on a VBO. So the general steps would be:
    1. Login via the HTTP interface (ex. http://loalhost:8181/user name jdoe&password NotSecure)
    2. Create a new session (ex. http://loalhost:8181/create name MyObject)
      1. There are different forms to this. I find this one is easier as it just takes the name of the VBO as opposed to it's ID.
    3. Call an action on the VBO (ex. http://localhost:8181/action abe74fef-c9db-4992-8e12-07a68d113fd0 MyTestAction)
      NOTE: When you do this in the real world the whitespace between the parts of the URL will be replaced with %20

      Cheers,​​

      ------------------------------
      Eric Wilson
      Director, Integrations and Enablement
      Blue Prism Digital Exchange
      ------------------------------

      Thank you @ewilson & @John Carter this really does help.
      ​​

      ------------------------------
      Gopal Bhaire
      ------------------------------