An issue with creating backup packages
Hi,
I'm trying to set the backup workflows up using the following document:
https://docs.campaign.adobe.com/doc/AC/en/technicalResources/Technotes/AdobeCampaign_How_to_export_packages_automatically.pdf
However, I have stuck on the step when I have to generate the packages from specification. First, I determined the query:
var query = xtk.queryDef.create(
<queryDef operation="select" schema="nms:delivery">
<select>
<node expr="@label"/>
<node expr="@internalName"/>
</select>
<where>
<condition boolOperator="OR" expr="@id != 0"/>
</where>
</queryDef>
)
var res = query.ExecuteQuery()
Then, I initialize the empty array and push all @label nodes there. Ultimately I want to include all attributes in the package but as for now it would be good to start from small steps.
Finally, I try to generate package:
var specFile = xtk.specFile.create(deliveryArray)
var package = specFile.GenerateDoc()
But I get the error message that says:
'JavaScript: cannot convert the value to an XML document.
Function 'create', arugment 0: cannot convert argument to an XML document.'
I also tried a different approach with assigning package specification to a variable and then passing it to specfile.create method but the output was the same.
Thanks in advance for any advices.
Best regards,
Dominik