Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
shows how to temporarly disable and enable the policy behaviours of a node
var node = search.findNode(<nodeRefOfADocumentOrFolder>);
var modified = node.properties.modified;
policies.disableForNode(node);
node.setName("C10");
node.save();
node.reset();
policies.enableForNode(node);
var modifiedAfter = node.properties.modified;
print(modified);
print(modifiedAfter);
test.assertEquals(modified.toTimeString(), modifiedAfter.toTimeString());
@kranthi23

This comment has been minimized.

Copy link

@kranthi23 kranthi23 commented Jul 4, 2018

Hi Jgoldhammer,

I want know either node is created/modified/deleted in js for rules to show in mails.How'll get that ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment