I would like to do the following with Google Apps Script:
- Search an specific cell in Google Sheets with multiple URL's
- Split the URL's and get them as separate links in order to avoid using the split function in sheets (watch the image
- Attach each URL into a Google Doc by using tags
I've done this before, but I'm only able to obtain the URL's in one array and not separated (watch image 1 and image 2)
for (var i=0; i<row[rownumber].length; i++){
if (row[rownumber].includes(","))
img=row[rownumber].split(",");
body.replaceText('{{TagName}}',img);
}
Here you have the example in Google Sheets in order to apply the mentioned steps (link). Any help would be appreciated. Thanks!

