This is happening when I am creating email template via API (postman). Although the email template appears fine when I preview it but when I send the email, it duplicates the content. Is this because of API?
Please check the template for Duplicate IDs.
Sorry, I didnot understand. Which ID's?
So I created a simple email template via API. Here is how it looked at the preview on Marketo:
And when I sent it as email, here is how it is appearing in the email:
You haven’t really provided enough information for anyone to attempt to reproduce this behavior.
Please supply the exact payload(s) you’re passing via API.
Here is the curl of my request via postman
curl --location --request POST 'https://xxxxx.mktorest.com/rest/asset/v1/emailTemplates.json' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer xxxxxxxx:sj' \
--form 'name="duplicate_09"' \
--form 'folder="{\"id\":27,\"type\":\"Folder\"}"' \
--form 'content=@"/Users/sarausman/Downloads/marketoTest.html"' \
--form 'description="test description"'
Surely you can understand that is not enough information to attempt to reproduce the behavior? You’re posting a file that none of us have.
my bad,
here is the content of html file:
<!DOCTYPE html>
<html>
<head>
<title>Page Title</title>
</head>
<body>
<h1>My First Heading</h1>
<p>My first paragraph.</p>
</body>
</html>
Not the same body content as in your first post but at least that's something to work with.