Quantcast
Channel: DEVONtechnologies Community - Latest posts
Viewing all articles
Browse latest Browse all 16167

How to get smart rule to act on tags created on documents

$
0
0

I have a smart rule that I want to execute a script on all new tags that are created regardless of how they are created. However, I cannot get the smart rule to run when a new tag is created on a document. If I create a new tag on a document and then go to the tag in the /Tags/ group and apply the smart rule, it works. However, the script doesn’t seem to run when the tag is created on the document.

Here is my current smart rule setup:

The smart rule runs a script that does some filing based on things in the item name and I also want the script to run on document names (if the name is changed) AND on tag names when they are created. However, I would be willing to split this into two smart rules (one just for tags and one for documents) if I could find a configuration that works when a new tag is created on a document. I have tried removing Any Document from the smart rule, and it still does not work on new tags created on a document.

I think the issue is that the selected record (which I refer to in the script) is the document, not the new tag – so the script IS being triggered when a new tag is created, but when the script runs, it runs only on the selected document name and not the newly created tag name. However, since the trigger is the creation of the new tag, I wonder if there is a way to refer to the newly created tag in the script, even if the selected record is the document?

An alternative would be to have the script run on all of the tags of the selected record if the selected record is a document – however, I want to avoid having to run the script on tags that are not new. I only want to run the script on the newly created tags.


Viewing all articles
Browse latest Browse all 16167

Trending Articles