use api to get email content from CMS | Community
Skip to main content
Level 2
July 12, 2021
Solved

use api to get email content from CMS

  • July 12, 2021
  • 3 replies
  • 2153 views

Hi everyone,

 

i want to know if it's possible to use api to get email content from CMS in Adobe campaign classique.

The CMS is  https://dartagnan.io.

My needs are to create the content in this CMS, then use the html in the delivery by using an api.

 

Every answer is welcome.

 

Thanks

 

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 costa_n11

Hi,

First of all, on the CMS part, you will need an endpoint where you'll be able to select a email content and once selected, the CMS returns the HTML back to the calling system, Campaign in our end, then in Campaign, you can customise the Delivery form to add a button that would use the new endpoint, once you've got the HTML you will save it in the field content\html\source, you will also need to get the Text version of the email that you would save in the field content/text/source....

Certainly doable, but not everything is Campaign related, the CSM needs to provide the right service too...

Hope this helps,

Thanks

Denis

3 replies

CedricRey
Level 5
July 16, 2021

Hi @diabbs 

As we work with Dartagnan (and my colleague developped the API to do exactly what you are trying), this is definitively possible.

You should ask them for some documentation, then you can make an HTTP / REST call with the HttpClientRequest object, in a JS Script (into a JSSP, a workflow etc.)

 

Cedric

 

costa_n11Adobe EmployeeAccepted solution
Adobe Employee
July 22, 2021

Hi,

First of all, on the CMS part, you will need an endpoint where you'll be able to select a email content and once selected, the CMS returns the HTML back to the calling system, Campaign in our end, then in Campaign, you can customise the Delivery form to add a button that would use the new endpoint, once you've got the HTML you will save it in the field content\html\source, you will also need to get the Text version of the email that you would save in the field content/text/source....

Certainly doable, but not everything is Campaign related, the CSM needs to provide the right service too...

Hope this helps,

Thanks

Denis

Level 2
August 6, 2021

Hi @diabbs,

 

You can call your CMS API and store the HTML code response in the instance variable of the workflow. and later on in the delivery activity, write a script to take a HTML code from the instance variable.

 

Below is the sample code. 

 

Regards,

Nitesh