Enrich your scripts as reusable Tasks for next gen superfast automation. Let the AI script your automation Task for you, run the script Task with Robogator, done! Run the script Task in service mode with Robogator, done! Run the script Task in parallel, done! Getting started with scripting has never been easier. Here are some handy tips and tricks for using PowerShell to script a Robogator task
To get the Account uuid of the current Task during script runtime as a string variable. Use the following method: This will get a string variable like 75839be4-89e9-4c00-b507-e7e9418e3e62. Always start with the param() header as the first line of your PowerShell script. If so, you are able to access the current Account uuid anywhere in…
To get the Instance uuid of the current Task during script runtime as a string variable. Use the following method: This will get a string variable like fbfa8388-7a23-46a9-a318-7f86f4b96955. Always start with the param() header as the first line of your PowerShell script. If so, you are able to access the current Instance uuid anywhere in…
To get the uuid of the Task during script runtime as a string variable. Use the following method: This will get a string variable like 888cec5b-6615-4e3d-80ed-8a328a4f71ba. Always start with the param() header as the first line of your PowerShell script. If so, you are able to access the current Account uuid anywhere in your script….
This method helps to exclude secrets and passwords from the script itself. So be compliant right from the start. The Key secrets are stored as hash values in the Robogator database. Just in time, in fact, only during the script runtime are the key secret available as decoded values. Add the Key secrets you want…
This method helps to exclude secrets and passwords from the script itself. So be compliant right from the start. The Key secrets are stored as hash values in the Robogator database. Just in time, in fact, only during the script runtime are the key secret available as decoded values. Add the Key secrets you want…
This shows how the typed Parameter value is accessible in the script. To get a Parameter value as string during the Task script runtime, use the following method: This method returns the string hello world. Parameters are always read only, so you are not able to set them to a new value during the Task…
It is possible to get a unique list of all Task uuid’s which this Task will trigger after it is finished. To access any followed Task uuid loop through the array with the following method: This will create some Chat messages with all Followed by Task uuids as content: A unique list means that if…
If you want to highlight a part of a string in bold letters. Just use * at the start and at the end of the part in the Chat message. This example above generates a single Robogator Chat message with hello world is bold as content and world is in bold letters.
It is often wisely to add to a static text link in a Chat message a one click action. This is possible for web and local file links. Just use % at the start and at the end of the link in the Chat message. Robogator knows automatically by itself when to open the standard…
The preferred way to write to the Robogator Chat with PowerShell is to use the following method: This example above generates a single Robogator Chat message with hello world as content.