Data Table Variables - UiPath Studio Guide [PDF]

Select the first Read Range activity and, in the Properties panel, in the Range field, type "A2:A21.". These are the Exc

10 downloads 47 Views 289KB Size

Recommend Stories


Visual Studio Programming Guide
You miss 100% of the shots you don’t take. Wayne Gretzky

Pageflex Studio User Guide
If you want to go quickly, go alone. If you want to go far, go together. African proverb

Vocal Studio - User Guide
The best time to plant a tree was 20 years ago. The second best time is now. Chinese Proverb

Table Tennis Nutrition Guide
Don't count the days, make the days count. Muhammad Ali

Wavelink Studio COM Programmers Guide
Never wish them pain. That's not who you are. If they caused you pain, they must have pain inside. Wish

Data table WP 00757 - Copy
I want to sing like the birds sing, not worrying about who hears or what they think. Rumi

Table S1: Nephelometer data correction
It always seems impossible until it is done. Nelson Mandela

PDF Download Studio Anywhere
Make yourself a priority once in a while. It's not selfish. It's necessary. Anonymous

The Essential Piano Studio Guide
If you feel beautiful, then you are. Even if you don't, you still are. Terri Guillemets

Studio Advanced 16 User Guide
Don’t grieve. Anything you lose comes round in another form. Rumi

Idea Transcript


UiPath Studio Guide

v2017.1

UiPath Orchestrator Guide

UiPath Studio Guide

UiPath Robot Guide

UiPath Activities Guide

Log In

Search

Data Table Variables

Data Table Variables

ARGUMENTS

Data Table Variables

SUGGEST EDITS

Managing Arguments Naming Best Practices The Arguments Panel Using Arguments

DataTable variables represent a type of variable that can store big pieces of information, and act as a database or a simple spreadsheet with rows and columns. They can be found in the Browse and Select a .Net Type window, under the System.Data namespace

TABLE OF CONTENTS

Example of Using DataTable Variables

(System.Data.DataTable). For more information, see Browsing for .Net Variable Types. IMPORTED NAMESPACES About Imported Namespaces

These variables can be useful to migrate specific data from a database to another, extract information from a website and store it locally in a spreadsheet and many others.

Importing New Namespaces

RECORDING

Example of Using DataTable Variables

About Recording

To exemplify how you can use DataTable variables, we are going to create an automation

Recording Types

that reads only two out of multiple columns from an Excel spreadsheet, and then transfers

Automatic Recording

them to another spreadsheet that already contains other information.

Example of Automatic Recording …

The initial file is a database of people, transactions, dates, and products. In this example, we

Example of Automatic Recording …

are going to extract their names and order dates and append them to an Excel spreadsheet

Manual Recording

that already contains similar information.

UI ELEMENTS About UI Elements UI Activities Properties

1. Create a new sequence. 2. Add an Excel Application Scope activity to the sequence. This activity is required for most of the Excel-related activities.

Input Methods

Note: If you do not have Excel activities installed on your version of UiPath, use the Manage Packages functionality to get them.

3. Create two DataTable variables,

datNamesList

and

datDate

. These are going to be

used to store information from the initial Excel spreadsheet. 4. In the Properties panel, in the WorkbookPath field, type the path of the initial Excel file to be used, between quotation marks. 5. Add two Read Range activities and place them one under the other, in the Excel Application Scope activity. These are used to get information from the initial spreadsheet. 6. Select the first Read Range activity and, in the Properties panel, in the Range field, type "G7:G37". These are the Excel table coordinates that tell UiPath Studio from where to extract information. 7. In the SheetName field, do not make any changes as the name of our sheet is the default one, Orders. 8. In the DataTable field, type the name of the first DataTable variable,

datNamesList

.

This variable stores all the information available between the G7 and G37 rows. 9. (Optional) Change the value in DisplayName field to Read Names, so you can easily tell apart this activity from the second one. 10. Select the second Read Range activity, and in the Properties panel, in the Range field, type "C7:C37". These are the Excel table coordinates that contain the order date we want to extract. 11. In the DataTable field, specify the

datDate

variable. This variable retains all the date

information we require. 12. Add a Write Range activity to the Designer panel, under the Excel Application Scope. This activity is used to write the stored information to another Excel file.

Note: The file used with the Write Range activity has to be closed when you run the project. If it is not closed, an error is displayed and the automation execution stops.

13. In the Properties panel, in the WorkbookPath field, type the path of the Excel file to be used to store all the information gathered at the previous steps. 14. In the DataTable field, type the

datNamesList

variable.

15. In the SheetName field type Database, and in the StartingCell, type "B7.“ This is the starting cell in which information from the initial file is to be added. 16. Add another Write Range activity and place it under the first one. 17. In the Properties panel, fill in the WorkbookPath and SheetName fields as for the previous Write Range activity. 18. In the Starting Cell field, type "A7". 19. In the DataTable field, type the

datDate

variable.

20. Press F5. Your automation is executed. 21. Double-click the final Excel file. Note that the copied information is available, and correctly updated.

Click here to download the example.

See Also Managing Variables Naming Best Practices The Variables Panel

English

Smile Life

When life gives you a hundred reasons to cry, show life that you have a thousand reasons to smile

Get in touch

© Copyright 2015 - 2024 PDFFOX.COM - All rights reserved.