Hi everyone,
I am having two properties having d:datetime type. I want to set values to those properties from workflow. One property will be coming from datepicker (d:datetime property in the workflow model) from the workflow form and other I am taking current date in workflow task. I am attaching these values to the properties by converting it to the ISO8601 format, but I could see only null as attached values.
var currentDate = new Date();
var currentISODate = utils.toISO8601(currentDate);documents[0].properties["sc:customProperty"] = currentDate;
How can I overcome this issue?
Did you make sure to call save() on the nodes after setting the property? Just assigning the value of properties is not enough in Alfresco server-side JavaScript.
Ask for and offer help to other Alfresco Content Services Users and members of the Alfresco team.
Related links:
By using this site, you are agreeing to allow us to collect and use cookies as outlined in Alfresco’s Cookie Statement and Terms of Use (and you have a legitimate interest in Alfresco and our products, authorizing us to contact you in such methods). If you are not ok with these terms, please do not use this website.