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 23 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 loop through a folder called “Test Data”. This folder is in My Documents\Digital Workforce\Genta Digital Worker\Assets\. This folder is automatically checked for paths you reference in Genta. Genta will then loop through each Excel file found in this folder, loop through the rows in each file, and enter the data into the RPA Challenge website. This website has controls that move every time the page is refreshed. Rest assured that Genta can handle this easily!

//This folder is in My Documents\Digital Workforce\Genta Digital Worker\Assets\
//This path is used to locate files and folders or you can also specify a full path below
$excelFile = ""
$folder = "Test Data"
$rpasite = "http://www.rpachallenge.com/"
navigate to $rpasite
foreach ($excelFile in $folder)
{
foreach ($row in $excelFile)
{
//Variables in foreach loops are auto-generated
//Use inspector to get variable names,
//they will be the column headers without spaces and special characters
switch to $rpasite
Enter $_FirstName as "First Name" -forcedetection
Enter $_LastName as "Last Name"
Enter $_PhoneNumber as "Phone Number"
Enter $_CompanyName as "Company Name"
Enter $_RoleInCompany as "Role in Company"
Enter $_Email as "Email"
Enter $_Address as "Address"
Click "Submit" button
//You are now finished inputting values. Swith to Excel application or file to update a value
switch to $excelFile
Set value "Is Completed" as "Yes"
}
//This will send the result back to the user to open once workflow automation is complete.
//You could also use "Copy" or "Move" command to copy files to another location
//The files are stored on Genta Worker if needed
Add Result $excelFile
}
//This command below will send the results stored on Genta Desktop
//Once complete, look for a button labeled 'Open Results'
Send Results to Desktop

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