In this tutorial, you will learn How to use the UiPath Output Data Table activity on your UiPath Studio. As you know it’s one of the data table activities in UiPath used to convert a datatable variable to a string.
Here we will be going through an in-depth detailed explanation and also an example of how to use it in your automation process.
Table of Contents
What is UiPath Output Data
UiPath Output Data Table activity is one of the acitivyt that UiPath provides. This activity is mainly used to convert a data table variable into a string. That means when you create a new data table using the build data table activity it will be stored in a datatable variable. So if you want to display it on the message box or anything else you have to convert it to a string variable.
![UiPath Output Data Table | Convert Datatable To String UiPath Output Data Table Activity With Examples](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhKv7WtGiB7IH0T1FZJlUSJ6FlWLuvKfZhvueQN8ctS3Q_JQ_kE_oAo2mfiep19o8PqUWsujdaw47Ly3FTYzKxwr6DUlsL59Hha8lkEfj83VNKuDJqJG_1HApgVfQurA6ro2mnGqWe1s9iMIFM6OOma9cn_Qvso5rPaRgjNpJxFXJ5-5_F2JB-qmfhnMQ/s16000-rw/UiPath%20Output%20Data%20Table%20Activity.webp)
So this activity allows you to convert your datatable variable into a string variable in UiPath Studio. You can also use this uipath output data table without a header. The package used in this activity is:
UiPath.Core.Activities.OutputDataTable
When you directly display the datatable variable in the message box it will show some errors or it will not display the data table in the message box. So to do this we need to convert to string.
Properties of Output Data Table UiPath Activity
Now, let’s check the properties of this activity.
Properties | Descriptions |
---|---|
Input | ➊ DataTable: The name of the datatable which you want to convert to string. |
Output | ➊ Text: The string variable where you want to store datatable values. |
Common | ➊ DisplayName |
How to Use UiPath Output Datatable Activity
You can easily perform UiPath output datatable to string in UiPath Studio with the help of this activity. Below we will provide an example of how this can be easily implemented. To convert to the string we should have an already existing data table or we have to create a new one. You can follow below steps:
- Open your UiPath Studio on your system and create a new process. If you are working on a process you can use the same process no need to create a new one.
- Now to convert a datatable to a string we should have an existing datatable. Here don’t have any data table present. So we have to create a new data table.
- To Create Datatable in UiPath, you can use the “Build Data Table” activity in UiPath studio. Now add multiple columns and rows based on your needs. By default, there will be two columns. You can edit by clicking on the edit icon.
- Now store the created datatable in a variable. You can create variables by using the keyboard shortcut “Ctrl + K“.
- Now on the activities search bar search for the “Output Data Table” Activity and add it to your workflow. You have to enter the variable of the source data table in “Input” and Destination in “Text” of the properties panel.
- The source datatable will be one which you have created using the build data table activity and the destination variable is the variable on which you want to store the converted data table. This variable will be a string variable.
![UiPath Output Data Table | Convert Datatable To String UiPath Output Data Table Activity Explained with example](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhqN1JabkRkgB7Urk0olGiyIsheC3F-IO7gYovZ6AIMmrZm-hINqDMKpbr6ind2sRJomYPo1ug5nNXYptczMz44kVdej7Pi5dvz8_QhYEaYPIXrEtVtXWBwiG7OVJhxvDVnjwXhyfaERo6sOlhehTwFFmzotUBUAea-CmgcxYuMRwBPzouk9NaSDCtMhw/s16000-rw/How%20to%20Use%20UiPath%20Build%20Data%20Table%20Activity.webp)
- To view, the datatable add a message box activity and enter the variable which you have converted to a string.
- Now run the process and see the table in the message box.
![UiPath Output Data Table | Convert Datatable To String The output of UiPath Output Data Table Activity](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhqhT6c5iAwAz-tfjcQF5eC_XJajYXZS_a7bxlME720HjhxZRFZA_YJFblgGAl0_uuTLYc015OqdGMp8qqE04Ckf9wf2hGyTZvSn73xROFxjSWGy84HzSJTIZmd-i5VIRPsC2uyvA9i9iQMr9pVgJLxQhr_zqlP5Cd4Z8A-whXrvvjN79VUABjDgKOQdQ/s16000-rw/Output%20of%20UiPath%20Add%20Data%20Row%20Activity.webp)
Conclusion
As now you have learned a detailed guide on this activity and how to implement it on your uipath studio, You can also this convert the uipath output data table to excel and CSV. if you have any difficulties while working on this activity you can ask in the comment section.
Also, refer UiPath Docs.