• Instructions to Ask a Question

    Click on the "Ask a Question" button and select the application for which you would like to ask questions.

    We have 5 different products namely - Pabbly Connect, Pabbly Subscription Billing, Pabbly Email Marketing, Pabbly Form Builder, Pabbly Email Verification.

    The turnaround time is 24 hrs (Business Hours - 10.00 AM to 6.00 PM IST, Except Saturday and Sunday). So your kind patience will be highly appreciated!

    🚀🚀Exclusive Discount Offer

    Just in case you're looking for any ongoing offers on Pabbly, you can check the one-time offers listed below. You just need to pay once and use the application forever -
     

    🔥 Pabbly Connect One Time Plan for $249 (🏆Lifetime Access) -  View offer 

    🔥 Pabbly Subscription Billing One Time Plan for $249 (🏆Lifetime Access) - View offer

Google doc from template error - Must specify at least one request

Pabblynaut

Member
I have a google doc with some tags like {{title}}. I try to use the "Create document from template" action.

I get an error message saying "Must specify at least one request." But the new document is still created, so it kinda works. What causes this error, and how can I fix it?

1737820667958.png
 

ArshilAhmad

Moderator
Staff member
The 'Create Document from Template' action step is used to replace the tags in a template with data of your choice and generate a new document where the tags are replaced with that data.

For example, this is a template that contains a tag.
1737914580988.png


You can use the 'Create Document from Template' action step to replace the tags in a template with specific data and create a new document.

1737914534788.png


Here is how the new document will look: the {{Tag}} is replaced with the specified data.

1737915009853.png


It looks like the template you are using to create a document doesn't contain any tags, which is why you are encountering this issue. We assume you just want to create a copy of the template without changing the data. To achieve this, we suggest using the 'Google Drive: Copy a File' action step. This will allow you to create a copy (new document) of your template without replacing any data.

1737915285576.png
 

Pabblynaut

Member
The 'Create Document from Template' action step is used to replace the tags in a template with data of your choice and generate a new document where the tags are replaced with that data.

For example, this is a template that contains a tag.
View attachment 52439

You can use the 'Create Document from Template' action step to replace the tags in a template with specific data and create a new document.

View attachment 52438

Here is how the new document will look: the {{Tag}} is replaced with the specified data.

View attachment 52440

It looks like the template you are using to create a document doesn't contain any tags, which is why you are encountering this issue. We assume you just want to create a copy of the template without changing the data. To achieve this, we suggest using the 'Google Drive: Copy a File' action step. This will allow you to create a copy (new document) of your template without replacing any data.

View attachment 52441
Thank you very much for the detailed reply. I got it to work like in your example. Quick follow up question:
How can I format the text so it will have formatting when it lands in the google doc? Like in your example, what would I do if I want "Arshil" to be in bold and cursive when it shows in the google doc?
 

Pabblynaut

Member
Hello @Pabblynaut,

At the moment, it doesn’t seem possible to add formatted text in Google Docs.
When I have used the "Create doc from template" action, a new doc is added to my google drive. Where can I see the id of this new file? I want to use the "Insert an image to a Specific Location" action to add a new image inside the new file, and not to the template.

1737983163255.png
 

Preeti Paryani

Well-known member
Staff member
Hello @Pabblynaut,

In the action Google Docs: Create Document from Template, the Document ID is being returned under the response key named DocumentID. Please refer to the attached image for more details.

1738040657724.png
 
Top