Creating a document from a google doc with incremental variables

Hey guys

I doing this flow and I am a bit stuck, let me explain.

I have answers coming from a form and I need to construct a google document based on the answer. The google doc is a fixed table template and cannot be varied, it must be exactly the same. For that I am using create a google document from a template. Until here everything

The problem, is that there are some answers, that have a configurable list, that means for example a person can have 1,2,3 or infinite automobiles and they must have the ability to pass that info by expanding the template

so if template is for example:
Vehicle
brand
use

I need to be able to create
Vehicle1
brand1
use1

and
Vehicle2
brand2
use2

I somehow managed to pull it through using replaces in the html code, however my problem is that for every iteration i duplicate the whole document obviously and only the vehicles part should be created and added within the document. So I would need to somehow only extract the part of the vehicles for example and then plug it, but its difficult without modifying the format

If someone has an idea I would appreciate a lot!!

thanks guys

Welcome to the Make community!

1. Scenario blueprint

Please export the scenario blueprint file to allow others to view the mappings and settings. At the bottom of the scenario editor, you can click on the three dots to find the Export Blueprint menu item.

Screenshot_2023-08-24_230826
(Note: Exporting your scenario will not include private information or keys to your connections)

Uploading it here will look like this:

blueprint.json (12.3 KB)

2. And most importantly, Output bundles

Please provide the output bundles of the trigger module by running the scenario (or get from the scenario History tab), then click the white speech bubble on the top-right of each module and select “Download input/output bundles”.
Screenshot_2023-10-06_141025

A.

Save each bundle contents in your text editor as a bundle.txt file, and upload it here into this discussion thread.

Uploading them here will look like this:

module-1-output-bundle.txt (12.3 KB)

B.

If you are unable to upload files on this forum, alternatively you can paste the formatted bundles in this manner:

  • Either add three backticks ``` before and after the code, like this:

    ```
    input/output bundle content goes here
    ```

  • Or use the format code button in the editor:
    Screenshot_2023-10-02_191027

Providing the input/output bundles will allow others to replicate what is going on in the scenario even if they do not use the external service.

Following these steps will allow others to assist you here. Thanks!

2 Likes

Hello Samliew,

thanks for the answer!

Sure, here is the blueprint:
Blueprint:
blueprint (21).json (273.6 KB)

Here are most of the output bundles except the google one as it contains some sensitive info
Untitled document.txt (341.8 KB)

thanks!