cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
jemoe
Frequent Visitor

Extract a table in a desktop window

When I extract a table in a desktop window I get the data as a string variable. How do I get it to be a table? If I get it into excel it paste it all in one cell.

 

Do somebody have an example how to?

5 REPLIES 5
VJR
Super User
Super User

Hello @jemoe 

 

Could you share some screenshots and which actions have you used in the PAD code.

RIYAMROY
Microsoft
Microsoft

@jemoe -

 

Step 1: You will have to right click on one of the table cells and then select "Extract entire HTML table"(screenshot attached)

RIYAMROY_0-1636987947555.png

 

In the Live web helper, you should be able to see the data in tabular format.

RIYAMROY_2-1636988203065.png

 

Step 2: Store Data mode > You could either choose Variable or Excel Spreadsheet

RIYAMROY_3-1636988237976.png

 

For Excel Spreadsheet, output would be of this format

RIYAMROY_1-1636988152328.png

 

For Variable, output would be of table format.

RIYAMROY_4-1636988530681.png

 

VJR
Super User
Super User

Hi @RIYAMROY 

 

The original post is referring to a desktop table versus an Html table.

 

I am able to recreate the mentioned issue. When the desktop table on the left is extracted using "Extract data from Window", then it pastes into excel into one single cell A1 as shown in the right. And does not give table like structure.

 

Select the output as Spreadsheet in the "Extract data from window" action.

 

VJR_0-1637033631728.png

 

 

If it doesn't work then one option would be to dynamically navigate cell by cell within the table.

 

@jemoe, have you come up with a workaround?

@RIYAMROY any ideas on alternate solution please share.

RIYAMROY
Microsoft
Microsoft

RIYAMROY_0-1637048531612.png

RIYAMROY_1-1637048735437.png

Hi @VJR - I am able to extract it in tabular format in Excel Sheet with the dummy Contoso Invoicing Desktop Application.

@jemoe @VJR Could you share the desktop application that you are using to re-create the issue?

VJR
Super User
Super User

Hi @RIYAMROY 

 

Its a training application for the Blue Prism RPA tool called as Centrix Data Solutions therefore won't be able to share unless it is taken from their training material.

 

Here is the difference..

 

The Ui element in Contossa application is a Datagrid

VJR_1-1637051794607.png

 

 

Whereas the Ui element in Centrix Data Solutions is a Table

 

VJR_2-1637051826219.png

 

Therefore they are giving different results.

 

I do not need an answer since I do not have this requirement 😊.

This analysis was only for the sake of the original poster.

 

But I do need information regarding the screenshots you have posted.

 

- May I know why is everything showing up twice in the Excel screenshot. Two email, amount, account name etc within the same Excel cell?

- Secondly, any idea why is there an incorrect mapping between the column headers and their values in the DataTable you have posted.

 

For example, 

The Email is showing up in the Amount column and the Date is displayed in the Account name column. Likewise for all others.

 

Do you see these as bugs and something to report?

 

 

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

New Ideas Forum MPA.jpg

A new place to submit your Ideas for Power Automate

Announcing a new way to share your feedback with the Power Automate Team.

MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

MPA Licensing.jpg

Ask your licensing questions at the Power Automate AMA!

Join Priya Kodukula and the licensing team, super users and MVPs to find answers to your questions on Power Automate licensing.

Top Solution Authors
Top Kudoed Authors
Users online (2,927)