How to use Python script in A2019 | How to run Python Script in A360 |AA | Automation Anywhere | RPA

How to use Python script in A2019 | How to run Python Script in A360 |AA | Automation Anywhere | RPA

Introduction

The speaker introduces the topic of using a Python code in Automation Anywhere and explains that they will be demonstrating how to call a customized Python script file.

Using Python Code in Automation Anywhere

  • The speaker demonstrates how to use a Python code or .py file in Automation Anywhere.
  • They explain that they will be showing how to call a customized Python script file and plug in one date and format input, which will be converted into the expected output.
  • The function takes both date and format as inputs, converts them into month day year format, and outputs the expected result.

Customized Python Script File

The speaker explains the functionality of the customized Python script file that they have created.

Functionality of Customized Python Script File

  • The customized Python script file takes one date and one format input.
  • It converts the input into month day year format.
  • Whatever format is given as input is converted into the expected output.

Executing a Python File in Automation Anywhere

The speaker demonstrates how to execute a Python file in Automation Anywhere.

Importing an Existing File

  • If you have already uploaded a python file in Control Room, you can call it here.
  • If you have something on your desktop, you can copy-paste its path here.

Selecting the Correct Version of Python

  • You need to find out what version of python you are using.
  • This can be done by searching for "python" in cmd.

Executing Function or Script

  • To execute function or script, go to "Execute Function".
  • Here, give the function to be executed along with arguments.
  • Give return value where it should be stored.

Prompt for Value

The speaker explains how to prompt for a value during runtime.

Prompting for Date Format

  • The speaker prompts the user to turn the date into a specific format.
  • They explain that Python allows different formats, such as %d for day and %m for month.
  • The input is in month day year format, which will be converted into the expected output.

Using Python Code in Automation Anywhere

In this video, the presenter demonstrates how to use Python code in Automation Anywhere. The video covers how to run a Python script from a .py file and how to pass input parameters and receive output from the script.

Running a Python Script from a .py File

  • To run a Python script from a .py file, save the file on your local machine and call it using the "Run Script" command in Automation Anywhere.
  • Input date formats can be converted into different output formats by specifying the desired format using percentage symbols (%). For example, %Y represents year with century as a decimal number, while %y represents year without century as a zero-padded decimal number.
  • Output formats can also be customized by specifying the desired format using percentage symbols (%). For example, %d represents day of the month as a zero-padded decimal number, while %m represents month as a zero-padded decimal number.

Passing Input Parameters and Receiving Output

  • Input parameters can be passed to the Python script by adding them as arguments when calling the script using the "Run Script" command.
  • Output from the Python script can be received by capturing it using Automation Anywhere's variable system.

Overall, this video provides an introduction to running Python code in Automation Anywhere and demonstrates some basic functionality for converting date formats and passing input parameters.

Video description

Hi All, In this video I have explained on how to use the python code / script in A2019. If you have any questions please drop email or leave comments, will come back to you. #Hithikaproductions@gmail.com