Skip to main content
Aug 27, 2020 4:48 PM UTC
Solved

Automating Package Movement in Adobe Campaign

I am trying to export specific schema(ex nms:deliveries) packages automatically from one environment to another on a timely manner.

 

I am trying to create a workflow which would take up all the contents of schema and load it into a package and automatically export it.

Is there any way to define a package definition using a workflow, instead of actually going and creating  a package in package management.

Any inputs would be appreciated.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Milan_Vucetic
Milan_VuceticAccepted solution
Level 9
Aug 27, 2020 7:46 PM UTC

Hi @d12kp,

here you go:


var specfileXml = '<package> <definition id="1" lineCountMax="500" schema="nms:delivery"> <where> <condition expr="@internalName = ' + '\'' + provide_delivery_internal_name +'\'' + '"/> </where> </definition> </package>';
var fileName = "location_of_export" + "your_package_name " + formatDate(getCurrentDate(), "%4Y-%2M-%2D %2H:%2N:%2S") + ".xml";
var specFile = xtk.specFile.create(specfileXml);
var package = specFile.GenerateDoc();
saveXmlFile(package, fileName);

Regards

Milan

2 replies

Milan_Vucetic
Milan_VuceticAccepted solution
Level 9
Aug 27, 2020 7:46 PM UTC

Hi @d12kp,

here you go:


var specfileXml = '<package> <definition id="1" lineCountMax="500" schema="nms:delivery"> <where> <condition expr="@internalName = ' + '\'' + provide_delivery_internal_name +'\'' + '"/> </where> </definition> </package>';
var fileName = "location_of_export" + "your_package_name " + formatDate(getCurrentDate(), "%4Y-%2M-%2D %2H:%2N:%2S") + ".xml";
var specFile = xtk.specFile.create(specfileXml);
var package = specFile.GenerateDoc();
saveXmlFile(package, fileName);

Regards

Milan

Translate
Sukrity_Wadhwa
Level 4
Sep 8, 2020 3:25 PM UTC

Hi @d12kp,

Did the given solution work for you? Please let us know.

Thanks!

Translate
Sukrity Wadhwa