Introduction

This article describes, what are predefined system variables in Automation Anywhere using community edition.

About Variables

Variables are used to store any value for future need like any calculation or passing value from one location to another location. We can use value via variable in the rest of the code based on variable scope. Sometimes we need to show system based values so in Automation Anywhere there are some predefined system variables like-

If you are a beginner then need to check this article Getting Started Robotic Process Automation using Automation Anywhere to create environment of Automation Anywhere.

Create a New bot

After logging Automation anywhere account through cloud community edition link,

What Are System Variables In Automation Anywhere

You will see a Dashboard as shown in below image and you can create a new bot through highlighted button ‘create a bot’-

What Are System Variables In Automation Anywhere

Bot Configuration

After clicking on ‘create a bot’ button, you will get a popup window. It will ask some information about bot which you want to create like-

What Are System Variables In Automation Anywhere

After clicking on choose option, a popup window will come where you can browse ‘CSharpCorner’ folder and click on choose to set a default location for your new bot.

What Are System Variables In Automation Anywhere

I gave name as ‘System_Variables’ to my new bot. After clinking on ‘create & edit’, Bot Editor will look alike below where you need to

What Are System Variables In Automation Anywhere

You can go to left ‘Variables’ pane and check that, there are couple of predefined variables including string and system, etc.-

What Are System Variables In Automation Anywhere

You just need to put below content in message section of ‘Messagebox’ to display value of each variable.

Below are the System Variables-$String:Newline$

What Are System Variables In Automation Anywhere

I will explain the syntax of above content where every variable is a predefined variable-

Click on save button and run the bot. You will see the below output window-

What Are System Variables In Automation Anywhere

Conclusion

In this article, you have learned what are Variables and System variables RPA and how to use them in a bot in an environment of Automation Anywhere.