AEM - issues with Campaign Standard Forms | Community
Skip to main content
jimzau
Level 2
August 7, 2018

AEM - issues with Campaign Standard Forms

  • August 7, 2018
  • 4 replies
  • 7566 views

Hello,

I am having 2 issues currently on AEM 6.4 when trying to integrate with Adobe Campaign Standard.

Issue 1:

There is no Adobe Campaign Profile page template available (I can't see where I can make this template available either). And the documentation I am following is : Creating Adobe Campaign Forms in AEM

Issue 2:

Looking at the Adobe Campaign Components documentation, the dialog for my Adobe Campaign Form components have the mapping field disabled:

I have searched through the forums, however the question that was raised did not get answered:

Issue while connecting AEM with Campaign Manager

Please help.

Thanks,

James

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

4 replies

smacdonald2008
Level 10
August 7, 2018
varunmitra
Adobe Employee
Adobe Employee
August 7, 2018

Hi James,

In AEM 6.4, there is no example AEM-Campaign Form Template.

However, it's very easy to create your own.

Steps:

1. Correct resourceSuperType

Make sure the page-component inherits from mcm/campaign/components/profile.
This is required for the servlets to get and save info

2. ContextHub-settings

Make sure the following meta-tag is located in the <head>

<meta id="campaignContextHub" data-register="true" />

3. Campaign properties

The jcr:content node must have the following properties

acMapping -> "mapRecipient" (v6/v7) or "profile" (acs)

acTemplateId -> mail

4. public example

Here a link to a example on a public-repo: https://github.com/Adobe-Marketing-Cloud/aem-adobecampaign-forms-sample

I hope this helps.

Regards

Varun mitra

jimzau
jimzauAuthor
Level 2
August 8, 2018

Hi Varun,

Thanks for your reply, I have tried to create a page component and inherit from mcm/campaign/components/profile as per your instructions, however I cannot edit the template to allow components to be added into the page.

Upon further investigation, I see that mcm/campaign/components/profile inherits from foundation/components/page, which is the older version of the page component:

In AEM 6.4, the page component we are inheriting is core/wcm/components/page/v2/page and the page templates resides under /conf/<my-site>/settings/wcm/templates - which I think it is not compatible with the old page component.

After digging deeper, I think I just need to allow CTA-Lead-Form component category to continue the steps in Creating Adobe Campaign Forms in AEM .

The only remaining issue I am having is the Campaign Form components' dialog has the mapping field disabled:

And this is my page jcr:content node properties:

I have already checked out the Git sample project, but the structure seems to be in the older version of AEM...

Would you please kindly provide any pointers as to how to get this work in AEM 6.4?

Thanks,

James

Adobe Employee
August 10, 2018

Hi James,

If you have access to the system console, try to turn on the debug log for com.adobe.cq.mcm.campaign. In your case, you have to check if your campaign server is returning data for two jssp: amcGetDeliveryMetadata.jssp and amcGetDeliveryTemplate.jssp (you can find the request from the debug log).

Then you have to make sure your contextHub is including the metaData from campaign. To check this, in the chrome console on the page, try "window.top.ContextHub.getAllStores()", you should see "metadata".

Last, I think the value of acMapping should be mapReceipent.

Hope it helps.

R,

James

jimzau
jimzauAuthor
Level 2
August 22, 2018

Hi jazhou,

How are you doing! Glad to see you respond to my post

Anyway, I have tried your suggestions, and here are the results:

Logging from com.adobe.cq.mcm.campaign:

And window.top.ContextHub.getAllStores() gives me:

I've also updated acMapping to mapRecipient:

But I still can't use the mapping field in the Adobe Campaign component.....

Adobe Employee
August 22, 2018

It seems you don't have metadata in your contexthub.

Can you please check if you have done the following in your page?

Make sure the following meta-tag is located in the <head>

<meta id="campaignContextHub" data-register="true" />

Also, try clean your session and login again. The campaign log should have something with amcGetDeliveryMetadata. This is to load the metadata for the template defined in acTemplateId(mail).

Level 2
July 2, 2020

I have also struggled for sometime with the same issue. You can follow the steps in this blog post to get it working: https://medium.com/rewrite-tech/how-to-create-adobe-campaign-standard-acs-forms-in-aem-a31ffb1d81de