Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn More

View all

Sign in to view all badges

Automating Package Movement in Adobe Campaign

Avatar

Avatar
Level 1
d12kp
Level 1

Likes

0 likes

Total Posts

1 post

Correct Reply

0 solutions
View profile

Avatar
Level 1
d12kp
Level 1

Likes

0 likes

Total Posts

1 post

Correct Reply

0 solutions
View profile
d12kp
Level 1

27-08-2020

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.

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Contributor
MVP
Milan_Vucetic
MVP

Likes

166 likes

Total Posts

383 posts

Correct Reply

135 solutions
Top badges earned
Contributor
Springboard
Shape 1
Validate 25
Validate 10
View profile

Avatar
Contributor
MVP
Milan_Vucetic
MVP

Likes

166 likes

Total Posts

383 posts

Correct Reply

135 solutions
Top badges earned
Contributor
Springboard
Shape 1
Validate 25
Validate 10
View profile
Milan_Vucetic
MVP

27-08-2020

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

Answers (1)

Answers (1)

Avatar

Avatar
Validate 1000
Employee
Sukrity_Wadhwa
Employee

Likes

146 likes

Total Posts

884 posts

Correct Reply

35 solutions
Top badges earned
Validate 1000
Validate 500
Validate 250
Validate 100
Validate 25
View profile

Avatar
Validate 1000
Employee
Sukrity_Wadhwa
Employee

Likes

146 likes

Total Posts

884 posts

Correct Reply

35 solutions
Top badges earned
Validate 1000
Validate 500
Validate 250
Validate 100
Validate 25
View profile
Sukrity_Wadhwa
Employee

08-09-2020

Hi @d12kp,

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

Thanks!