1.5

Running a Content Creation Operation for Email By Data
Record (Using JSON)
Problem
You want to run a content creation operation to generate and send email content using a
design template and an existing set of Data Records as inputs.
Solution
The solution is to make a series of requests using the following URIs and method types to
submit, monitor progress and ultimately retrieve the result of the content creation operation.
There is also the option of cancelling an operation during processing if required. These
requests can be submitted via the Content Creation (Email) REST service:
Process
Content
Creation (By
Data Record)
(JSON)
/rest/serverengine/workflow/contentcreation/email/{templateId}
POST
Get Progress of
Operation
/rest/serverengine/workflow/contentcreation/email/getProgress/
{operationId}
GET
Get Result of
Operation
/rest/serverengine/workflow/contentcreation/email/getResult/
{operationId}
POST
Cancel an
Operation
/rest/serverengine/workflow/contentcreation/email/cancel/
{operationId}
POST
Example
HTML5
cce-process-by-dre-json.html
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
Page 142