Skip to main content
Replace image in Google Docs
Wrk Product avatar
Written by Wrk Product
Updated over a year ago

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)

NAME

DESCRIPTION

TYPE

REQUIRED

EXAMPLE

Document link

The link for the Google Docs Document

URL

Yes

https://document/ks7

Alt text title

The alt text for locating the image to be replaced

  1. Select an image, drawing, or graphic.

  2. Right click and select Alt text.

  3. Under Title enter your alt text

  4. Click Ok.

Text

Yes

Image-1

Source of the new image

The location type where the image used in the replace will be sourced from

Predefined Choice List

Yes

Web

New image link

The 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'

URL

No

https://wrk.com/logo.png

New image file name

Name of the image file from the data library to be used in the replace

Text

No

logo.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

NAME

DESCRIPTION

Success

This status is selected if the image was successfully replaced in Google Docs

No Result

This status is selected in the event of the following scenarios:

- The alt text provided could not locate any images and no images were replaced

Unsuccessful

This 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

Did this answer your question?