I programmed one that calls a Google Doc and in said Doc there is a variable called #Name# this is replaced by the name that is stored in a SpreadSheet.
My question is that to that Doc I want to add a variable called # Photo # and it is replaced by the photo stored in a Drive URL and this URL is in a SpreadSheet
How can I call that URL that is in Spreadsheet and be able to replace the field #photo#
With the name it does well with the function
body.replaceText ('#name#', name);
but with the image I don't know what to call it
#PHOTO#
part of a paragraph or another container element? – Iamblichusvar name = sheet.getRange (i, 2) .getValue (); body.replaceText ('# name #', name); // update the temp doc
– Robert Rodriguez#PHOTO#
). Otherwise, I don't think what you want to do is possible (either the whole paragraph will be replaced by the image, or the image will be appended just before or just after the paragraph, but not at the exact same location you want it. What do you think of this? – Iamblichus