Converting data types
As a developer, there is a lot we have to consider when working with data. This applies to software development, and not just RPA. With Automation Anywhere, when data is initially read from a source, it is often assumed to be of the String
type. If the data item is not a String
, it will need to be converted to its actual type. Also, the most common output is also a String
type. If values are outputted to a Message Box or log/text files, they need to be a String
. If they are not, then again, the data item will need to be converted. Luckily, there are a few scenarios in our bot where data conversion will be useful.
The bot we have been building so far already has some great examples of converting the data type. Since the outputs of each walk-through have been as a Message box, it is mandatory that the value is of the String
data type. Message boxes can only show String
data types.
Let's look at the data conversions performed by the current bot. The first...