Avatar

Community Advisor

Hello,

I have problems to get content of delivery from AEM. I am using the AEM integration package function from JS library nms:amcIntegration.js

 

 

 

/**
 * Get the current content value from AEM
 *   {DOMDocument} elDelivery The delivery
 *  {DOMDocument}            The node containing the content parts
 */
function nms_delivery_aemGetContent(elDelivery)
{
  var result = <content/>;
  var iCMSAccountId = elDelivery.@["cmsAccount-id"];

 

 

  But any type of delivery object I provide it will always fail on the line

 

 var iCMSAccountId = elDelivery.@["cmsAccount-id"];

 

I tried NLWS.nmsDelivery.load(), queryDef with JXON  (have not tried with XML). Can somebody give me some hints? Any help would be appreciated.