Skip to main content
The Script command runs custom Regex, JavaScript, C#, or Python code within a data extraction workflow. Use it to transform extracted data, handle complex logic, interact with APIs, or automate tasks beyond standard configuration. Scripts run in the Sequentum Cloud environment and can integrate with existing Agents; the command is located under Other in the command palette.

Command properties

Selected content

Script selected content settings
  • When missing: Specifies whether to Fail, Warn, Ignore, or Passthrough when the selection does not exist.
  • When hidden or disabled: Specifies what to do when the selection is hidden or disabled on the page.
  • Selected content: Displays the content selected by the XPath.

Script

Script command options Script language, code, and timeout settings
  • Language: Select Regex, JavaScript, C#, or Python.
  • Code: Enter the code that the command runs.
  • Timeout: Sets the duration within which the script is expected to complete.
For example, the following script delivers extracted data by email to recipients specified in the Agent input parameters.

Files

This feature lets you upload files and make them available to all commands and scripts within the Agent. Add multiple files by dragging and dropping them into Drag files here… or by selecting Upload File. Files available to Script commands
  • Drag and Drop Files: Adds multiple files simultaneously by dragging and dropping them. Successfully uploaded files are accessible and visible in the user interface.
  • Upload File: Adds multiple files simultaneously by selecting Upload File. Successfully uploaded files are accessible and visible in the user interface.
  • Name: Select the file name link to open a detailed view showing the File Size, Last Modified date, and an Edit option. You can also edit the file directly from this screen.
    • Back to Files: Returns to the previous Upload files page.
    • Edit: Lets you modify the uploaded file.
    • Save button: Saves the updated file after you make changes.
    • Cancel: Discards your changes and keeps the file in its original state.
  • File Size: Displays the actual size of the uploaded file.
  • Added: Shows the date and time when the file was uploaded.
  • Delete: Removes the uploaded file.
  • Edit: Lets you modify an uploaded file. Selecting Edit opens a detailed view showing the File Size, Last Modified date, and another Edit option. You can edit the file directly from this screen.
    • Back to Files: Returns to the previous Upload files page.
    • Edit: Lets you modify the uploaded file.
    • Save button: Saves the updated file after you make changes.
    • Cancel: Discards your changes and keeps the file in its original state.
  • Download: Downloads the uploaded file.