1

We have created a piece of ampscript that retrieves the images url from a data extension based on the SKU of a product. The SKU is injected in the code. Everything works but the ampscript loads once we move into preview.

Is there a way to force the ampscript to load the content in the editor? I thought potentially with treatascontent function?

4

Ampscript is only rendered during sendtime, and 'Send preview' is mimicking the sendtime behavior without sending. Treatascontent() tells the system to render ampscript nested within, as opposed to treating it as a string. This is useful if you are pulling ampscript dynamically from a DE field.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.