Skip to end of metadata
Go to start of metadata

You are viewing an old version of this content. View the current version.

Compare with Current View Version History

« Previous Version 11 Next »

Home | Categories | How-to-Articles | Command Reference | Examples | Troubleshooting | Cognillo.com

Use this page to find example workflows for Genta Automation.

This example will create a datatable and add columns and rows to it.

Create Datatable $table
Add Datatable Columns "Name", "Phone", "Email"
Add Datatable Row "John Doe", "646-234-0909" , "jdoe@contoso.com"
Add Datatable Row "Jane Doe", "416-234-0909" , "jdoe@contoso.com"
Foreach ($row in $table)
{
//You can access data in a datatable by row index
Show Message Box "User is $row[0]"
Show Message Box "Their email is $row[2]"
Show Message Box "Their phone number is " + $row[1]
//You can also access data by column name for the current row
//Add Pause below to see the auto-generated variables you can use, then remove the pause
Pause
Show Message Box "User has name $_Name"
}
//Stores results to what we call a 'Result Package'
Add Result $table

//Send the results from Result Package to location
//In this case, it sends results to Genta Desktop user
Send Results to Desktop
//You could also save all the results that is addeded to a folder on Genta Worker
//Send Results to "D:\data\"

Filter by label

There are no items with the selected labels at this time.


Can't find what you’re looking for? Create a Support Ticket or Chat Live (click 'Chat with a Representative')

NOTE: Our User Guides (MS Word) provide help that may not be found in the Knowledge Center articles.

  • No labels