Demo Project using Environment Activities

The URL of the demo project is given below where users can learn about these activities in a better manner. 

Steps:

  1. Retrieve the full path of the special folder using the Get Environment Folder Activity.  
  2. Display Folder Path in a Message Box. 
  3. Retrieve the values of different System Variables by using the Get Environment Variable activity. 
  4. Display System Variable Values in a Message Box. 
Activities Used“Get Environment Folder, Get Environment Variable, Message Box”
Video Linkhttps://www.youtube.com/watch?v=VTz4LSzDcp0&list=PLwFA5laAhcEJ7sVztHRNXDdXffy2odMvv&index=21

Demo Project using File Activities (Part 1)

The URL of the demo project is given below where users can learn about these activities in a better manner. 

Scenarios:

  1. Add a new line to a text file: 
    • Use the Append Line activity to add a new line to a previously created text file. 
  2. Copy a file from one folder to another: 
    • Use the Copy Files activity to copy a file from one folder to another. 
  3. Create a Test Folder on the desktop: 
    • Use the Create Directory activity to create a new folder called “Test Folder” on the desktop. 
Activities Used“Append Line, Copy Files, Create Directory”
Video Link https://www.youtube.com/watch?v=B5u82XXMpFA&list=PLwFA5laAhcEJ7sVztHRNXDdXffy2odMvv&index=24

Sub Activity – File

This section includes a set of activities designed to work with files and folders on the local system and allows users to create, move, copy, delete, and manipulate files and directories.

The File category has the following sub activities:

Append Line: This activity helps to append a string value to the end of a text file.

Input Properties:

  • File Path: The full path to the file.
  • String: Text to be attached to the file.

Copy Files: This activity can be used to copy one or more files to a specified folder.

Input Properties:

  • Source Folder: The relative or absolute path of the directory to search.
  • Contents: The search string to match against the names of files in path. This parameter can contain a combination of valid literal path and wildcard ( * and ?) characters, but it doesn”t support regular expressions.
  • Target Folder: The relative or absolute path of the destination folder.
  • Recursive: If selected, it will include the current directory and all of its sub-directories.

Advanced Option Properties:

  • Overwrite: If selected, replace the existing file in the target folder.
  • CleanTargetFolder: Select to clear the target folder before starting the copy action.
  • FlattenFolder: If selected, copie all files from subdirectories to the root folder.
  • DeleteFileAfterCopy: If selected, delete all files in the source location after the copy is complete.

Create Directory: This activity is used to create a new directory in the specified location.

Input Properties:

  • Path: Path of the directory to be created.

Delete Files: This activity is used to delete file(s) from the specified location.

Input Properties:

  • Source Folder: The relative or absolute path of the directory to search.
  • Contents: The search string to match against subdirectory names in the path. Supports valid literal and wildcard characters, but not regular expressions.
  • Remove SourceFolder: Attempt to remove the source folder as well.
  • Recursive: If selected, it will include the current directory and all of its sub-directories.

Get File Info: This activity is used to get the information of a specific file.  

Input Properties:

  •  File Path: String or string variable that holds the relative or absolute path of file that needs to be retrieved.

Output Properties:

  • FileInfo: It returns file information inSystem.IO.FileInfo datatype.

Get Files: This activity helps to retrieve the location of the specified files.

 Input Properties:

  • Source Folder: String or string variable that holds relative or absolute path of the file that needs to be retrieved.
  • Contents: The search string to match against the names of files in the path. This parameter can contain a combination of valid literal path and wildcard ( * and ?) characters, but it doesn”t support regular expressions.
  • Recursive: If selected, it will include the current directory and all of its sub-directories.

Get Folder Info: This activity is used to retrieve the properties of a specified folder.

Input Properties:

  • FolderPath: The folder from which properties are to be retrieved.

Output Properties:

FolderInfo: It returns folder information in System.IO.DirectoryInfo datatype.

Path Exists: This activity is used to check if the specified path exists or not.

Input Properties:

  • Path: The full path to be checked.
  • PathType: Specifies if the path points to a folder or a file.

Output Properties:

  • Exists: Determines if the folder or file was found.

Read Text File: This activity reads the content of the specified text file and stores it in a string variable.

Input Properties:

  • FileName: Full path of the file to be read.

Output Properties:

  • String: Extracted text from the file.

Rename File: This activity allows the user to rename the existing file.

Input Properties:

  • Source File: The relative or absolute path to the directory to search.
  • File Name: New name for the file.
  • KeepExtension: Keep extension of the file.

Rename Folder: This activity is used to Rename a Folder.

Input Properties:

  • Source Folder: The relative or absolute path to the directory to search.
  • Folder Name: New name for the folder.

Wait For File Download: This activity waits for a specific file to be downloaded.

Input Properties:

  • FilePath: Full path of the file.
  • PollingInterval: Polling interval for checking the file.

Write Text File: This activity creates a text file and writes the specified string value to it. If the text file already exists, then its contents will be overwritten.

Input Properties:

  • File Path: Full path of the file.
  • String: String to be written into the file.

Sub Activity – Environment

Environment includes activities for accessing and managing environment variables, system settings, and configurations to ensure seamless automation execution across different system environments.

The Environment activity has the following sub activities:

Beep: This activity can be used to generate a beep sound to notify or indicate a user about an automation.

Get Environment Folder: This activity gets the path of the specified system folder.

Input Properties:

  • SpecialFolder: Select the special system folder for which the path will be retrieved. Or Choose the system special folder to retrieve its path.

Output Properties:

FolderPath: Returns the path of the specified SpecialFolder.

Get Environment Variable: This activity returns the content of the specific variable from the environment.

Input Properties:

  • VariableName: Specify the name of the environment variable to retrieve.

Output Properties:

  • Value: Returns the value of the specified environment variable.

Demo Project using Dialog and Clipboard Activities

The URL of the demo project is given below where users can learn about these activities in a better manner. 

Steps:

  1. Provide the input as text in Input Dialog. 
  2. Display Input Text in Message Box. 
  3. Set the output Text from the input dialog activity to Clipboard. 
  4. Get Text from Clipboard and display it in Message box 
  5. Select any File During Runtime. 
  6. Display Selected File Path in a Message box. 
Activities Used“Input Dialog, Set To Clipboard, Get From Clipboard, Select File, Message Box”
Video Link https://www.youtube.com/watch?v=7L5ywGJURrs&list=PLwFA5laAhcEJ7sVztHRNXDdXffy2odMvv&index=20

Sub Activity – Dialog

This System category includes activities for interacting with users through dialog boxes. These activities help facilitate user interaction within automation workflows.

The Dialog activity has the following sub activities:

Input Dialog: This activity displays a dialogue box that prompts the user with a label message and input field.

Input Properties:

  • Title: Title of the dialog box.
  • FieldLabel: The label for the dialog box’s input field.

Output Properties:

  • Output: The value inserted by the user in the input field.

Message Box: This activity displays a message box with the given text.

Input Properties:

  • Message: The text to be displayed in the message box.
  • Caption: The title of the message box.
  • Mouse Button: Select the required buttons like OkOkCancel, YesNoCancel, YesNo.

Output Properties:

  • ChosenButton: Displays The Selected Button.

Select File: This activity is used to retrieve the path of the file that has been manually selected by the user.

Input Properties:

  • Filter: A filter to shortlist files based on specific criteria.

Output Properties:

  • SelectedFile: Returns the full path of selected file in a String variable.

Sub Activity – Clipboard

This System category includes activities for handling clipboard operations. These activities help automate copy-paste actions within workflows.

The Clipboard activity has the following sub activities:

Get From Clipboard: This activity retrieves the copied text from the clipboard.

Output properties:

  • Text: The string variable that retrieves the text content from the clipboard.

Set To Clipboard: This activity copies the input text to clipboard.

Input Properties:

  • Text: The text you want to copy to the clipboard.

Sub Activity – Transaction

Transactions handle and process individual transactions within your automation, allowing you to add, retrieve, and manage transaction items and queue entries efficiently.

The Transaction category has the following sub-activities:

Add Transaction Item: This activity adds a new item to the queue and starts a transaction.

Input Properties:

  • QueueName: Specify the name of the created queue where the queue item will be added.
  • Reference: A string or string variable used as an identifier for a queue item or a group of items.
  • TransactionInformation: Collection of additional information about the specific transaction item that is to be added.
  • Priority: It is to prioritize the transaction item that is added to the queue depending on priority list.

Delete Queue Item: This activity is used to delete a particular transaction from a specified queue in the Bot Manager.

Input Properties:

  • Transaction: Gets TransactionItem as input.

Get Queue Item: This activity enables to get a list of transactions from a specified queue in the Bot Manager.

Input Properties:

  • Filter: Creates query for filtering queue details.

Output Properties:

  • TransactionItem: Enter the QueueItem variable created which stores the first item from a queue, according to its priority and deadline.

Get Queue Items Details: This activity retrieves the list of transactions from a bot manager queue based on the multiple filters.

Input Properties:

  • Filter: Query for filtering queue details.

Output Properties:

  • QueueItems: The list of items from Bot Manager Queue that you want to retrieve.

Get Transaction Items Details: This activity enables the user to retrieve a list of transactions from a queue according to the filter(s).

Input Properties:

  • Filter: Query for filtering transaction details.

Output Properties:

  • TransactionItem: The list of items from the transaction that you want to retrieve.

Start Transaction: This activity helps to start a transaction in a particular job.

Input Properties:

  • QueueName: Specifies the name of the created queue.
  • Name: Specifies the name of the transaction to display.
  • Reference: Enter a string or string variable to act as an identifier for a queue item or a group of them.
  • TransactionInformation: Collection of additional information about the specific transaction item that is to be added.

Output Properties:

  • TransactionItem: Transaction variable that stores the transaction item.

Update Transaction Progress: This activity is used to update the transaction progress and transaction information.

Input Properties:

  • Progress: The custom progress status to set for the TransactionItem.
  • ItemInformation: Details of the transaction item for which progress is being checked.
  • TransactionItem: The transaction item whose progress is to be updated.

Update Transaction Status: This activity can be used to update the status of the transaction item to either Failed or Completed which will be reflected under the details of a particular queue in the Bot Manager.

Input Properties:

  • Status: The status to set for the TransactionItem, either ‘Completed’ or ‘Failed.
  • Output: Get data from transaction item using parameter.
  • TransactionItem: Transaction item whose status is to be updated.

Transaction Error:

  • Reason: The reason for which transaction failed. This field supports only string and string variables.
  • Error Type: The error type that the failed transaction has thrown.

Log Custom Message: This activity enables the user to send custom logs to the Bot manager and display them on the Jobs page.

Input Properties:

  • Description: The message you want to log.
  • Source: An activity label that helps to record the activity information in a log.

Sub Activity – Resource

Resource includes activities for adding, updating, and deleting resources to ensure efficient workflow execution and optimal bot performance.

The Resource activity has the following sub activities:

Add Resource: This activity is used to add a particular resource to the Bot Manager.

Input Properties:

  • Resource– Enter the resource to be added to the BMT.

Delete Resource: This activity is used to delete a particular resource which is stored in the BOT Manager.

Input Properties:

  • ResourceName– Enter the name of the resource to be deleted.

Get Multiple Resources Value: This activity can be used to retrieve the values of multiple resources that are stored in the Bot Manager.

Input Properties:

  • Resources– Specify the names of the resources whose values are to be retrieved.

Get Resource Value: This activity retrieves the value of a particular resource which is stored in the Bot Manager.

Input Properties:

  • Resource– Enter the name of the resource that contains the required value.

Output Properties:

  • Value– The variable that stores the value associated with the specified resource name.

Update Resource: This activity is used to update a particular Resource which is stored in the Bot Manager.

Input Properties:

  • Resource– Enter the new value for the specified resource. Or Input the updated value for the specified resource.