I have an XML file which has tag data which I want to extract and use as a value for an aspect field. I'm familiar with Javascript and I have a rule which calls a server side .js file but when I try to use getElementsByTagname() it produces an error.
Failed to run Actions due to error: Failed to execute script 'workspace://SpacesStore/d2ca222d-00c2-11dc-abd3-d3625ca9de94': TypeError: Cannot find function getElementsByTagName. (AlfrescoScript#45)
My script looks like this: -
var videoGroup = document.content.getElementsByTagName("group");
document.properties["custom:VideoGroup"] = videoGroup;
document.save();
Any ideas?