Great answer! Exactly what I needed! Thanks Slimmed my script down from
240 lines to 40 ^^Couldn't get it to work initially,
"Object.keys(wkf.activities.fileImport).length" kept returning 0. But it
started working when I added... for (var key in
wkf.activities.fileImport) { if
(wkf.activities.fileImport.hasOwnProperty(key)) { logInfo("Key: " +
key); logInfo("True"); }}...before your for-loop while troubleshooting.
Not sure why...Also had to add the actual start- and end-tags and save
function: f...