Avatar

Level 2

I am trying to access exportToAAM activitiy data inside a javascript block, but I am unable to do so. Here is my code:

var groupQuery = "SELECT iWorkflowId FROM XtkWorkflow";
var groupsXML = sqlSelect(
  "collection,iWorkflowId:int", 
   groupQuery
   );

for each(var group in groupsXML.collection){
  var wkf = NLWS.xtkWorkflow.get(group.iWorkflowId);
  logInfo(wkf.activities.exportToAAM.label);
  logInfo(wkf.activities.exportToAAM[0].label);
}

 

I have also tried to query mData and read it as an DOMDocument, but didn't work either. I feel like activities/exportToAAM is not being returned in the XML.