The Salesforce Developers website will undergo maintenance on May 29, 2024 from 3:00 a.m. UTC to 10:00 a.m. UTC. The maintenance process may affect the availability of our documentation. Please plan accordingly.

ContentImagebyKey

Returns an img tag with the src attribute containing the path to an image from Content Builder. Identify the image to include with the ID value. The img tag includes the title and alt information for the selected image, as well as a border value, measured in pixels, and any identified thid value. If the value of the first parameter does not link to a valid image, you can include another image value for the second parameter as a default option.

ContentImagebyKey(1, 2)

OrdinalTypeDescription
1stringRequiredExternal key of image to return
2stringRequiredValue used to return image if function can’t find the original image ID