# How to create a table in PEGA RPA

**URL:** <https://forums.pega.com/t/how-to-create-a-table-in-pega-rpa/7105>\
**Category:** General\
**Tags:** pega-robotic-process-automation\
**Created:** [May 27, 2024, 8:25am UTC](https://forums.pega.com/t/how-to-create-a-table-in-pega-rpa/7105 "2024-05-27T08:25:27Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![SoumajitD17123628](https://avatars.discourse-cdn.com/v4/letter/s/4da419/32.png) [@SoumajitD17123628](https://forums.pega.com/u/SoumajitD17123628)\
**Post date:** [May 27, 2024, 8:25am UTC](https://forums.pega.com/t/how-to-create-a-table-in-pega-rpa/7105/1 "2024-05-27T08:25:27Z")

</div>

How to create a table in PEGA RPA

---

<div class="post-metadata">

**Author:** ![VANAMA\_SANTHOSH](https://avatars.discourse-cdn.com/v4/letter/v/f19dbf/32.png) [@VANAMA\_SANTHOSH](https://forums.pega.com/u/VANAMA_SANTHOSH)\
**Post date:** [May 27, 2024, 8:43am UTC](https://forums.pega.com/t/how-to-create-a-table-in-pega-rpa/7105/2 "2024-05-27T08:43:29Z")

</div>

@SoumajitD17123628

Here’s a general process:

- Drag and drop the DataGrid control from the toolbox onto your automation canvas.
- Define the columns in the DataGrid properties. You can specify data types like String, Integer, etc.
- To populate the table, there are multiple options:
  - Manually add rows using the DataGrid’s “Add Row” method.
  - Use scripting to iterate through existing data structures (like Lists or Arrays) and dynamically add rows with corresponding values.
  - If dealing with external data sources (like web tables), explore Pega RPA’s web scraping features to extract data and populate the DataGrid.

 ![Screenshot 2024-05-27 142738.png](https://pega1.discourse-cdn.com/pega/original/2X/0/02f8a7db686e3f7fe798dc2d2d025b687ae1c9d7.png)

---

<div class="post-metadata">

**Author:** ![SoumajitD17123628](https://avatars.discourse-cdn.com/v4/letter/s/4da419/32.png) [@SoumajitD17123628](https://forums.pega.com/u/SoumajitD17123628)\
**Post date:** [May 27, 2024, 8:52am UTC](https://forums.pega.com/t/how-to-create-a-table-in-pega-rpa/7105/3 "2024-05-27T08:52:48Z")

</div>

@VANAMAS16755149 in my case, the columns are dynamic, the task is basically to fetch a table from a web page whose rows and columns can change with time. Then to put that table in excel file and save it. Till now i have done like this :

 ![This is process which i have done till now.png](https://pega1.discourse-cdn.com/pega/original/2X/7/798609c5e3061e2afff81892d5fe98bde3a674b6.png)

---

<div class="post-metadata">

**Author:** ![VANAMA\_SANTHOSH](https://avatars.discourse-cdn.com/v4/letter/v/f19dbf/32.png) [@VANAMA\_SANTHOSH](https://forums.pega.com/u/VANAMA_SANTHOSH)\
**Post date:** [May 27, 2024, 9:18am UTC](https://forums.pega.com/t/how-to-create-a-table-in-pega-rpa/7105/4 "2024-05-27T09:18:51Z")

</div>

@SoumajitD17123628

1.Kindly check the Interrogation with match rules.

2.Use Lookup table for adding rows and columns after that import into excel

3.Replace data grid with import excel table.
