Skip to main content

Replace image in Google Docs

Replaces images in a Google docs document that match a specified image alt text title with a new image. The source of the new image can be linked or an existing image within the Wrkflow data library.

Common use cases

  • Data Manipulation
  • Client Reporting
  • Data Manipulation
  • Data Management
  • Content management
  • Engagement & Communication Management

Category:

  • Google Docs

Inputs (what you have)

NAMEDESCRIPTIONTYPEREQUIREDEXAMPLE
Document linkThe link for the Google Docs DocumentURLYeshttps://document/ks7
Alt text titleThe alt text for locating the image to be replacedSelect an image, drawing, or graphic.Right click and select Alt text.Under Title enter your alt textClick Ok.TextYesImage-1
Source of the new imageThe location type where the image used in the replace will be sourced fromPredefined Choice ListYesWeb
New image linkThe link to the new image to use in the replace. If the link is to a file on Google Drive ensure 'Google Drive' is selected for 'Location of the new image'URLNohttps://wrk.com/logo.png
New image file nameName of the image file from the data library to be used in the replaceTextNologo.png

Note: the value of inputs can either be a set value in the configuration of the Wrk Action within the Wrkflow, or a variable from the Data Library. These variables in the Data Library are the outputs of previous Wrk Actions in the Wrkflow.

Outputs (what you get)

  • N/A

Outcomes

NAMEDESCRIPTION
SuccessThis status is selected if the image was successfully replaced in Google Docs
No ResultThis status is selected in the event of the following scenarios:- The alt text provided could not locate any images and no images were replaced
UnsuccessfulThis status is selected in the event of the following scenarios:- Fail to login to account- Application site is down- Document cannot be modified- The new image was not provided- Google Docs link does not exist

Requirements

  • All Drives, Files and Docs need to be shared with: googlewrkbots@wrk.com

  • All Images must meet the following specifications:

    • Images must be less than 50MB in size
    • Images must be in one of the following formats: PNG, JPEG, or GIF
  • The image being replaced in the Google Doc must have the Position setting "Move with text" selected to complete the replace