Access current Account uuid in PowerShell script

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 your script.

To access Robogator proprietary variables with PowerShell, you have to first initialize all variables on the first line of the script with e. g. param($TaskParameter, $MyKey, $followed) and after that it is possible to access the variables in the underlaying script lines.

Updated on February 21, 2025
So, how does that make you feel, now you've read this explanation?