cancel
Showing results for 
Search instead for 
Did you mean: 

.TransformDocument (workflow package)

tomoconnell
Champ in-the-making
Champ in-the-making
I'm trying to get a workflow to transform the document located in the workflow package to a pdf. I can get that far, but as soon as i change it to put the transformed pdf in a different location my workflow just silently errors. I'm sure its just a tiny error somewhere but any help would be highly appreciated.


Working, only transform
for (var i = 0; i < bpm_package.children.length; i++) {         
var node = bpm_package.children;
var transform = node.transformDocument("application/pdf");
}

Not working, transform to a diffrent location
for (var i = 0; i < bpm_package.children.length; i++) {         
var node = bpm_package.children;
var nodeDest = companyhome.childByNamePath("Sites/test/documentLibrary/destination");
var transform = node.transformDocument("application/pdf", nodeDest);
}
2 REPLIES 2

niketapatel
Star Contributor
Star Contributor
Hi Tom,

your script looks OK, Did you check user has required permission in destination folder where you are moving transformed document.

Can you also post your error logs that will help to get exact error

The script was fine,
I moved it to where it should have been anyway in the definition (was just testing it under a diffrent task,)
Works fine now, it just didnt like transforming to a destination on the decision user task.