Insert more than one image into google docs

Hello!
Not sure if this is a new topic. I want to include 1+x images in a google docs template according to images url entries in supabase. (Web project enables user to upload foto and comments. These should be than via webhook been saved in a new google docs file using a docs template). Showing one image is not the problem. I soved this by using a “image” in the template. But how can I show all images which are referring to a unique identifier from supabase?? I appreciate your help! best regards Frederik

1 Like

Hi @Frederik_Menke

Could you please elaborate more. We didn’t get your problem well.

Regards,

Msquare Automation - Platinum Partner of Make
@Msquare_Automation

1 Like

I Try. on a website user can upload multiple images. these images should be displayd in google docs file. I am using a template. Webhook module is getting an array “all_images” with 1 or more images in it. in the “Document for a template” i can not use the array , i have to use the single values from it (kind of sub arrays) . But that does not work because that amount of these values are not constant.

2 Likes

@Frederik_Menke, Assuming there’s a maximum of photos that can be imported - could you declare multiple variables in your template and then when inserting photos in those variables do :

if(data!=emptystring;data;emptystring)

?

This will effectively ignore if there are no 2nd or 3rd files, but if you have them, will insert into the template. If your data is an array, you can use get(data;1) to get first element and get(data;2) for second element for example.

@Frederik_Menke doesn’t that allow you to map the array?

Regards
Msquare Automation - Platinum partner of Make
@Msquare_Automation

1 Like