Are updating email content section and approving email draft async? | Community
Skip to main content
jiayee
New Participant
June 26, 2020
Solved

Are updating email content section and approving email draft async?

  • June 26, 2020
  • 1 reply
  • 2519 views

Dear Marketo community,

 

We want to update email content sections (https://developers.marketo.com/rest-api/endpoint-reference/asset-endpoint-reference/#!/Emails/updateEmailComponentContentUsingPOST) and then send a sample email.

 

However, just using the aforementioned API alone does not cause any immediate update to the email asset, as verified on the Marketo email editor and in the sample email (which shows the old content).

 

We found out that approving the email draft helps make the update immediate. However, when we want to update (and approve), send sample email, and update again (and approve), and send sample email again, the subsequent updates are not immediate.

 

It is only after a couple of minutes that we can do another immediate update.

 

May I know how the update and approve API works? Are they both async? What happened to the subsequent update API calls? Are they queued or are they simply ignored?

 

Thank you!

 

Regards,

Jiayee

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Oz_Platero

Hello @jiayee ,

 

  1. The calls should get queued.  Are you logging responses?
  2. In the UI you when an email is approved with draft you will get 2 option.
    1. Send Sample
    2. Send Sample of Draft
  3. API will only give you the first option.
    1. Instead try the following:
    2. Try un-approving the email, making changes via API, and then sending samples via API calls.

Thank you

 

 

1 reply

Oz_Platero
Oz_PlateroAccepted solution
New Participant
June 28, 2020

Hello @jiayee ,

 

  1. The calls should get queued.  Are you logging responses?
  2. In the UI you when an email is approved with draft you will get 2 option.
    1. Send Sample
    2. Send Sample of Draft
  3. API will only give you the first option.
    1. Instead try the following:
    2. Try un-approving the email, making changes via API, and then sending samples via API calls.

Thank you

 

 

jiayee
jiayeeAuthor
New Participant
July 21, 2020

Hello @oz_platero,

 

Yes, the API requests were successful so I couldn't understand why the updates were not returning upon subsequent queries. Now, I understand, since "Send sample" is not "Send sample as draft".

 

After trying out your suggestion (un-approve, update, then approve), it works!

 

Thank you, Oz!