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
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.

Users online (5,979)