Hello All
I am trying to use the below referenced document to generate and download packages but with limited outcome.
https://docs.campaign.adobe.com/doc/AC/en/technicalResources/Technotes/AdobeCampaign_How_to_export_p...
I have created a workflow with the below snippet; the workflow runs without error but i see only a single line as output. More than that; i am unable to find a way to access any generated package files. Would prefer to either find a proper link to ftp them or just download them locally. The end goal is to ftp and upload in another environment.
var query = xtk.queryDef.create(
<queryDef schema="xtk:specFile" operation="select">
<select>
<node expr="@name"/>
<node expr="@namespace"/>
<node expr="data"/>
</select>
<where>
<condition expr="[@namespace] = 'XYZ'" />
</where>
</queryDef>
);
var res = query.ExecuteQuery();
var specFile = xtk.specFile.create(res);
var package = specFile.GenerateDoc();
var fileName = "/tmp/myPackage.xml"
saveXmlFile(package, fileName)
var file = new File("/tmp/myPackage.xml")
file.open()
for each(var line in file)
logInfo(line)
file.close()
The above highlighted segment gives me just a single line of result:
<?xml version='1.0' encoding='windows-1252'?>