Create google doc with dynamic values

Finnaly i found the way to replace the image, using http request node to google doc api
https://docs.googleapis.com/v1/documents/{{$node["Google Docs"].json["documentId"]}}:batchUpdate

RAW Json parameter:

{
  "requests": [
    {
      "replaceImage": {
        "imageObjectId": "<this-is-image-id-from-your-google-doc>",
        "uri": "{{$node["Google Drive1"].json["webContentLink"]}}",
        "imageReplaceMethod": "CENTER_CROP"
      }
    }
  ]
}
1 Like