Robotic Process Automation (RPA)

 View Only
  • 1.  Calling RPA Bots via APIs

    Posted Wed June 15, 2022 03:25 PM
    Hello Team,

    So we are trying to call the bots via APIs using the GET method as per the knowledge center. However, we are observing that whenever we call the bot using the API, it tries to logon to the machine/server with the user that has been configured for that machine.

    So wanted to confirm that if this is the way it works or we are missing some configuration.

    Best regards,

    ------------------------------
    Ali atzaz
    ------------------------------


  • 2.  RE: Calling RPA Bots via APIs

    Posted Thu June 16, 2022 10:22 AM

    Hello Ali,

    if you are using the agent api, https://<ip>:<port>/scripts/<scriptName>

    by default it will try to log in to the machine with the data that is configured on the computer


    however you can pass this parameter to it in case you don't want it to log in "unlockMachine"

    So

    https://<ip>:<port>/scripts/<scriptName>?unlockMachine=false


    Example



    ------------------------------
    felipe Andres Barrera Torres
    ------------------------------



  • 3.  RE: Calling RPA Bots via APIs

    Posted Fri June 17, 2022 10:24 AM
    Hello Felipe,

    I tried your prescribed solution, Attached unlockMachine=false parameter in the URL but getting <ErrorMessage>Unlock machine is disabled, and the session is inactive or invalid.</ErrorMessage> error on execution. I am attaching a screenshot of the reported issue for better assessment.


    Best Regards,
    Mutahir Gharay

    ------------------------------
    Mutahir Jawaid Gharay
    ------------------------------



  • 4.  RE: Calling RPA Bots via APIs

    Posted Fri June 17, 2022 10:46 AM
    I refer to the documentation
    • Bots can't run using the Windows system account. The error Error trying to execute script. Unlock machine is disabled, and the session is inactive or invalid. is displayed. To prevent this, the bot needs to unlock the machine to activate a user session. The computer must have a credential attached to it. See Configuring computers for more information on how to create a computer with a credential attached to it.
    • When scheduling bots to run on virtual machines, you must enable Unlock Machine. The computer must have a credential attached to it. See Configuring computers for more information on how to create a computer with a credential attached to it.


    ------------------------------
    felipe Andres Barrera Torres
    ------------------------------