SOLVED

Are updating email content section and approving email draft async?

Go to solution
Highlighted
Level 1

Are updating email content section and approving email draft async?

Dear Marketo community,

 

We want to update email content sections (https://developers.marketo.com/rest-api/endpoint-reference/asset-endpoint-reference/#!/Emails/update...) 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

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Level 4

Re: Are updating email content section and approving email draft async?

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

 

 

View solution in original post

2 REPLIES 2
Highlighted
Level 4

Re: Are updating email content section and approving email draft async?

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

 

 

View solution in original post

Highlighted
Level 1

Re: Are updating email content section and approving email draft async?

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!