Inline data-based invocation

Another (and a more secure) way to call the Create Correspondence application could be to simply hit the URL at https://‘[server]:[port]’/[contextPath]/aem/forms/createcorrespondence.html, while sending the parameters and data to call the Create Correspondence application as a POST request (hiding them from the end user). This also means that you can now pass along the XML data for the Create Correspondence application inline (as part of the same request, using the cmData parameter), which was not possible/ideal in the previous approach.

Parameters for specifying letter

NameTypeDescription
cmLetterInstanceIdStringThe identifier for the letter instance.
cmLetterIdStringThe name of the Letter template.

The order of parameters in the table specifies the preference of parameters used for loading the letter.

Parameters for specifying the XML data source

NameTypeDescription
cmDataUrlURLXML data from a source file using basic protocols such as cq, ftp, http, or file.
cmLetterInstanceIdStringUsing xml data available in Letter Instance.
cmUseTestDataBooleanTo reuse the test data attached in data dictionary.

The order of parameters in the table specifies the preference of parameters used for loading the XML data.

Other Parameters

NameTypeDescription
cmPreviewBooleanTrue to open the letter in preview mode
RandomTimestampTo resolve the browser caching issues.

If you using http or cq protocol for cmDataURL, URL of http/cq should be accessible anonymously.

Experience Manager


Espressos & Experience Manager: AEM Forms

Espressos & Experience Manager

Thursday, Mar 6, 7:00 PM UTC

Join Adobe's AEM product team as they highlight AEM Forms' latest innovations, including: the new Gen AI Assistant, Unified Composition with AEM Sites, and new ways to deploy forms through conversations.

Register

Connect with Experience League at Summit!

Get front-row access to top sessions, hands-on activities, and networking—wherever you are!

Learn more