Expand my Community achievements bar.

Radically easy to access on brand approved content for distribution and omnichannel performant delivery. AEM Assets Content Hub and Dynamic Media with OpenAPI capabilities is now GA.
SOLVED

How to create a new lead programmatically through workflow

Avatar

Employee

I want to create a workflow for a newsletter subscription, when the submit button is clicked i want to execute a workflow which will insert a new lead in repository.

This is a cross post of an unanswered question in a LinkedIn Group.

1 Accepted Solution

Avatar

Correct answer by
Level 10
3 Replies

Avatar

Correct answer by
Level 10

Avatar

Level 10

You can submit to a custom AEM sling servlet. In the servlet, use the AEM Java API to invoke the workflow. See http://helpx.adobe.com/experience-manager/using/invoking-experience-manager-workflows-using.html.