Expand my Community achievements bar.

Dive into Adobe Summit 2024! Explore curated list of AEM sessions & labs, register, connect with experts, ask questions, engage, and share insights. Don't miss the excitement.

ES 2.5 Correspondance Management Add Template API

Avatar

Level 2

Hi All

I want to programmatically add an XDP letter template to the ES 2.5 correspondance management system, is there an API or WS to enable this to happen?

Regards

Kev

2 Replies

Avatar

Former Community Member

Hi,

CM has a Form (XDP template) as well as a Letter (Correspondence Template that uses a Form) - Not sure which one you are looking for when you said “XDP letter template” [but my guess is that it’s the former that you may be looking for].

So, if you are looking to add an XDP template, i.e., create a Form, you may use the FormService APIs (createForm(…)) to do so. And in case you are looking to create a Letter you should be using the LetterService APIs (createLetter(…)).

These APIs (available in the adobe-acm-client.jar in your installation’s client libs) are exposed as Spring beans, as part of the Asset Composer building block. 

(you can easily expose a Spring bean as a Web Service - http://static.springsource.org/spring/docs/2.0.x/reference/remoting.html)