I want to send email to my customers in SFMC. The email contains a list of products. The data of products comes from a HTTP request, and the HTTP response is a JSON object.
Now I've developed a content block to display a product. The content block contains product name, a thumbnail image, and a link. Then when I add several content blocks in email, I find that I have no method to update name and image and url for each content block.
PS, I tried document.getElementbyId but failed. It seems DOM related function is not fully supported in AMPScript.
The content block looks like below:
<table>
<tr>
<td>
<a href=...>
<img src=...>
</a>
</td>
</tr>
product name
</table>
The email contains several content blocks. I hope I can find a method to update each content block's image's src.
Thanks very much.