Re: email content duplication issue

SaraUsman
Level 2

Re: email content duplication issue

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?

Vinay_Kumar
Level 10 - Community Advisor

Re: email content duplication issue

Please check the template for Duplicate IDs.

SaraUsman
Level 2

Re: email content duplication issue

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:

SaraUsman_0-1664302615555.png


And when I sent it as email, here is how it is appearing in the email:

SaraUsman_1-1664302663801.png

 

 

SanfordWhiteman
Level 10 - Community Moderator

Re: email content duplication issue

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.

SaraUsman
Level 2

Re: email content duplication issue

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"'
SanfordWhiteman
Level 10 - Community Moderator

Re: email content duplication issue

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.

SaraUsman
Level 2

Re: email content duplication issue

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>




SanfordWhiteman
Level 10 - Community Moderator

Re: email content duplication issue

Not the same body content as in your first post but at least that's something to work with.