PowerShell Extensions in Readibots

The Readibots platform provides the following extensions to the standard Powershell environment.

Parameter Types

Classes

Variables

  • $connectId

  • $connectIds

  • $sessionVars

    • Holds various values relevant to the run context of the script

    • $sessionvars["RunId"]

      • run id of the current bot instance (eg. "2517492053871474291")

    • $sessionvars["CbUserName"]

      • UPN of the interactive user running the bot (eg. "john.doe@acme.com")

    • $sessionvars["ScriptId"]

      • the unique of the script (eg. "93fbc1f8-ed60-42fe-b1e2-1234bfa31826")

    • $sessionvars.ProcessLoggingHelper.ScriptPath

      • the path of the current running bot (eg. "/Root/A solution folder/bot script name",

    • $sessionvars["MyQueue"]

      • only set for Queue service bots, holds the path of the service bot’s queuue

Cmdlets