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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Please Help: Flow to a...
Power Automate
Unanswered

Please Help: Flow to add Google Sheet rows to Sharepoint List

(1) ShareShare
ReportReport
Posted on by 18

Hi everyone,

 

I'm trying to build a Flow that sends rows from a Google sheet to a Sharepoint list. Each time a new row is added in the Google Sheet, I'm looking to have that row added to the Sharepoint list as well.

 

I've attached an image of my Flow here.

 

rmclass_0-1659989550930.png

 

The above Flow works but each time the Flow runs, it copies every row in the Google Sheet to the Sharepoint list again instead of just the new Google Sheet row that's been created.

 

I would like for just the new Google Sheet row to be added to Sharepoint. Could you please help me understand how I can fix this? 🙂

 

Thanks so much.

Categories:
I have the same question (0)
  • Rhiassuring Profile Picture
    8,690 Moderator on at

    Hi there, 


    This is because you are using "Get Rows" - so it is returning every row.  You have to use that action though since there is no trigger for "When a new row is added to Google Sheets", so I see your pain.

    You will want to filter your returned "Get Rows" to only the new ones. So, we will filter the array for anything added in the last day - since the last time it ran. But, it doesn't have dates by default in the rows.

     

    Do users add dates into the sheet? Would you be permitted to add a column so we can track the run times?  

  • rmclass Profile Picture
    18 on at

    Hi @Rhiassuring

     

    Oh okay, sure let's do that. 🙂

     

    Yes, I can add a column for dates in the Google Sheet. I have set up a column "Date Today" which captures the date the row was created in mm/dd/yyyy format. Does this work for what you have in mind?

     

    rmclass_0-1659997790406.png

     

    What would we need to do next? 🙂

     

    Thanks a lot for your help by the way.

  • Verified answer
    Rhiassuring Profile Picture
    8,690 Moderator on at

    Yes! Definitely. You could also just use "In SharePoint" Y/N, or even a "Link to SP Item", if you wanted to.

    So you will Get Rows from your Google Sheet, same as before.


    Then, use a Filter Array to return only those items where Date Today is Empty. 

    Then, use a Parse JSON on the Output from the Filter Array so you can get the individual columns. (Run the flow once on its own up to the Filter Array, and use the Output to Generate Schema in the Parse JSON action.)

    For each of those, you will iterate through and use the Create Item action in SharePoint. The difference now is that with each iteration, you'll also want to Update Row in Google Sheets to add the convertTimeZone(utcNow(),'UTC','Your Time Zone'),'M/d/yyyy') to the "Date Today" column in the current row you're using. 

    That would, all in all, look like this:


    Example Google Sheet before it runs:

     

    Rhiassuring_4-1660087593794.png

     

    The flow:

    Rhiassuring_5-1660087643443.png

     

     


    Proof that it worked...

     

    Rhiassuring_2-1660085976164.png

    Populated SharePoint list

    Rhiassuring_6-1660087677001.png

     

    Populated Google Sheet

     

    Rhiassuring_3-1660087494680.png

     

     

  • rmclass Profile Picture
    18 on at

    Thanks so much @Rhiassuring! 🙂

     

    I've built that flow out using your flow as guidance but seem to be getting an error at the "Parse JSON" stage - 

    Action 'Parse_JSON' failed
     

    rmclass_0-1660093785193.png

    First, I created the flow up to "filter array", ran the flow and copied the "raw output".

    Then I created "Parse JSON", entered "Body" in the Content field and for the Schema section, clicked "Generate from Sample". In here, I pasted the raw output I copied from "Filter Array" flow run. Am I making a mistake somewhere with this?

     

    Also, it seems like 2 additional "apply to each" controls automatically popped up when I was entering data into "Create Item" and "Update row" - "Apply to each 2" and "Apply to each 3". Will this affect anything? If so, how would we remove them without affecting the rest of the flow? 🙂

     

    Here's the full flow:

    rmclass_5-1660094510911.png
    rmclass_4-1660094449661.png

     

    Thanks again! 🙂

     

     

  • Rhiassuring Profile Picture
    8,690 Moderator on at

    What is the error you're getting on your Parse JSON? It looks like you're doing it right to me, but, hard to tell. 

    For your Apply To Each - as soon as you have created your filter array, and then  your Parse JSON, you will only use your Parse JSON going forward. You won't reference the Google Sheet again, it all exists in  your Parse JSON ... once it works 🙂 

  • rmclass Profile Picture
    18 on at

    Hey @Rhiassuring 

     

    Here's the error:

     

    It said "ValidationFailed. The schema validation failed."

     

    rmclass_1-1660098510522.png

     

    For the "apply to each" bit, do you mean we select the purple Parse JSON operators on the bottom right that pertain to each field instead of the Google Sheet ones I've currently selected below? 🙂

     

    rmclass_2-1660101041214.png

     

    It looks like those 2 extra "Apply to Each" controls come up automatically when I try to make selections in the fields, starting with the *Title field. 🙂

     

  • Rhiassuring Profile Picture
    8,690 Moderator on at

    For the second part: Yes, only the Parse JSON outputs should be used in your creation - not the sheet.

    For your Parse JSON issue, that usually happens when you've mis-pasted content or grabbed something that isn't typical of the output. Did you grab the whooooooole output? Should start with a [{

  • rmclass Profile Picture
    18 on at

    Thanks sooooo much @Rhiassuring I just ran the flow again and that worked. It was mis-pasted content. 🙂

    The flow runs perfectly, I really appreciate your help!! 🙂

  • ina295 Profile Picture
    32 on at

    hi i couldnt find filter array "date value" how to find it ? 

     

  • DDB Profile Picture
    2 on at

    Hello Rmclass,

    I am trying to create a flow to add Google Sheet rows to Sharepoint List. What app did you use to create the flow?

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 538 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 405 Moderator

#3
abm abm Profile Picture

abm abm 252 Most Valuable Professional

Last 30 days Overall leaderboard