• Instructions to Ask a Question

    For any assistance, please click the "Ask a Question" button and select the Pabbly product for which you require support.

    We offer seven comprehensive applications designed to help you efficiently manage and grow your business:

    Our support team endeavors to respond within 24 business hours (Monday to Friday, 10:00 AM to 6:00 PM IST). We appreciate your understanding and patience.

    🚀 Exclusive Lifetime Offers 🚀

    We invite you to take advantage of our special one-time payment plans, providing lifetime access to select applications:

    • 🔥 Pabbly Connect — Lifetime Access for $249View Offer
    • 🔥 Pabbly Subscription Billing — Lifetime Access for $249View Offer

    Make a one-time investment and enjoy the advantages of robust business management tools for years to come.

Create Google Doc [on 1st Record Only]

Status
Not open for further replies.

fivehead

Member
Here are the steps I want:
  • Google Sheets sends data to Pabbly via Webhook
  • Create Google Doc
  • Populate Google Doc with each Google Sheets row
My question is: How do I create only one Google Doc? I don't want to make a new document for each row.

I tried using the Pabbly Router:
  • Route 1: Create document [1st record]
  • Route 2: Populate document [all other records]
The problem is that Route 2 can't map to the document created in Route 1.

Thank you!
 
Last edited:

nirk12

Member
Im also a member like you (not staff). But here is what i suggest.

You can create a Template Document (watch videos on how to transfer data from Google Sheets to Google Doc / Google Slides). It is just mapping the cells to the required places in the Document where you need by placing {{TEXT}} in curly parentheses in the Google Doc / Google Slides.

When you run, it will create new documents for each row. This is what you want. You dont need to use any Router logic here in the workflow.
 

fivehead

Member
Im also a member like you (not staff). But here is what i suggest.

You can create a Template Document (watch videos on how to transfer data from Google Sheets to Google Doc / Google Slides). It is just mapping the cells to the required places in the Document where you need by placing {{TEXT}} in curly parentheses in the Google Doc / Google Slides.

When you run, it will create new documents for each row. This is what you want. You dont need to use any Router logic here in the workflow.
Thanks for your response! But I don't want a new document for each row - I only want 1 document that will be filled in with data taken from the spreadsheet.

I have it mostly working:
  • Webhook trigger (simple response, because advanced response isn't working for me?)
  • Counter (initial value = 0, increment by 1)
  • Router
    • IF initial counter = 0
      • Create document
    • IF initial counter != 0
      • Append to document
...but the counter isn't working as expected :-(

If I remove the counter from Pabbly and add a counter column to the spreadsheet (1 = 1st record, 2 = 2nd record, etc), it sometimes works, but other times, the webhook output grabs the last record from the spreadsheet first (as verified by Task History).

Frustrating, for sure.
 

ArshilAhmad

Moderator
Staff member
You only need to create the document manually once. The point of automation is to automatically add newly add data to that specific document whenever a new row is added to your spreadsheet.
 
Status
Not open for further replies.
Top