web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Getting data from exce...
Power Automate
Unanswered

Getting data from excel file and sending it in a HTTP Request (Invoke Web Service) PAD - Converting Datatable to multidimensional Array format.

(0) ShareShare
ReportReport
Posted on by

Hi,

 

I am trying to write a flow that gets data from a excel files, and sends it using the 'Invoke Web Service' (in a loop).

 

Currently I am opening the excel file and reading it into a Datatable variable using 'Read from Excel worksheet'.

 

The aim then is to provide this variable to the 'Invoke Web Service' action in PAD.

 

When the Datatable variable is used in the 'Invoke Web Service', it is converted into a string with comma seperated cells, with rows seperated by new lines.

 

E.g. 

 

A, B, C

1, 2, 3

 

But I need to provide this as a string representing an array that can be parsed on the server side (JSON parsing).

 

So I need it in the format:

 

[["A","B","C"],["1","2","3"]]

 

I could not find a way to do this easily - the only method I could find was using a series of replace actions.

 

The problem is, some of the fields contain commas (,) so when I use the replace action they also get replaced and the resulting 2D array string is incorrect.

 

e.g. PAD shows the Datatable values as:

 

Steve, Smith, 50,

 

Which would then provide the array as:

 

[["Steve", "Smith", "50"]], but it should be [["Steve, Smith", "50"]].

 

Does anyone have any ideas how to better manage this?

 

For background, the excel files we are dealing with are around 20,000 lines and 50 Columns, and there are several - so looping through every item in the datatable in Power Automate Desktop in order to build the array string is not a viable solution as it takes way too long.

 

Thanks for your help!

 

 

 

 

 

 

 

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Automate

#1
11manish Profile Picture

11manish 243 Super User 2026 Season 2

#2
David_MA Profile Picture

David_MA 211 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 190

Last 30 days Overall leaderboard