Avatar

Correct answer by
Community Advisor

Hi,

I think you have the 2 main ways to expose APIs from Adobe Campaign.

One other way to expose content from ACC is to publish webForm/webApp/report, but it seems difficult to me to use it as API.

Here a code to list all the methods of your instance schemas (but it'll always go through the soaprouter.jsp url). You can execute it in a javascript into a workflow.

var query = xtk.queryDef.create("<queryDef schema='xtk:schema' fullLoad='true' operation='select'><where><condition expr=\"data NOT LIKE '%' + 'extendedSchema=&quot;' + '%'\"/></where><orderBy> <node expr='[@namespace]||[@name]'/></orderBy></queryDef>");
var schemas = query.ExecuteQuery();
for each ( var schema in schemas.schema)
{
  var schemaName = schema.@namespace + ":" + schema.@name;  
  var methodCollection =  schema.methods.method;
  for each(method in methodCollection)
    logInfo( schemaName + ":" + method.@name + ' (' + (method.@static.toString() == 'true' ? 'static' : 'non static' ) + ') - ' + method.help );
}

You can remove informations from the "logInfo" if not needed. It will output the result to the workflow logs.

 

Cédric

View solution in original post