cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
ChrisHervochon
New Member

Parse Array to Google Sheets Rows with Flow

Hello,

I have gotten stuck on a flow and need some assistance. What I would like my flow to do is:

  1. Watch my inbox for an email from a specific vendor (so far so good)
  2. Download the .pdf attachment (the invoice) to Dropbox (so far so good)
  3. Send the invoice to an AI Builder model to extract the clients (a comma separated list on the invoice, not ideal) and the price I pay per clients (so far so good)
  4. Parse the client list to a Google Sheet with columns for: Client, Price and PowerApps ID (necessitated by Flow)

Here is what my Flow currently looks like:

ChrisHervochon_0-1627832610906.png

ChrisHervochon_2-1627832682321.png

 

ChrisHervochon_3-1627832732714.png

 

The function in the Compose step is:

split(outputs('Extract_information_from_forms')?['body/responsev2/predictionOutput/labels/Clients/value'],',')

 

The output I receive from the flow is the entire array of clients pasted into cell A2 of the Google Sheet. For example:

["Client1","Client2",....]

 

What I am trying to get is something like this:

ChrisHervochon_4-1627832903747.png

 

I've been searching the board for several hours and can't seem to find a solution that works. Any assistance would be greatly appreciated.

1 REPLY 1
JoeF-MSFT
Power Apps
Power Apps

Hi @ChrisHervochon,

 

Thanks for posting this question.

 

The split function creates a list with the clients in it, you will need to iterate the list to insert them one by one in your Google sheet by using an Apply to each action like this:

JoeFMSFT_0-1628348134365.png

 

I hope this helps!

Helpful resources

Announcements
 WHAT’S NEXT AT MICROSOFT IGNITE 2022

WHAT’S NEXT AT MICROSOFT IGNITE 2022

Explore the latest innovations, learn from product experts and partners, level up your skillset, and create connections from around the world.

Register for a Free Workshop.png

Register for a Free Workshop

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

September Events 2022

Check out all of these events

Attend in person or online, there are incredible conferences and events happening all throughout the month of September.

Users online (3,197)