Custom validators based on assigned tags #16198
-
Objective: If you want to apply a tag with name "Monitored" to a device. this should only complete if:
I understand the basics of custom validators. I'm halfway there but it seems like I can't get it working. I have:
When I look at my outfile, I only see the tag name visible after I edit the object a second time (That is, when adding this tag I don't see its name. On a second edit (such as removing the tag), I see the tag name). However, I need this to operate like a normal validator would. Not entirely sure if this is possible but would be super rad if it was. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
And I figured it out through trial and error:
Not sure if it's the 100% correct way, but it 100% works |
Beta Was this translation helpful? Give feedback.
-
I used your solution as a template for another tag-based validation rule of my own (since I could not get my desired event rule to work):
And this works great when I'm editing a single object, but breaks bulk edits:
|
Beta Was this translation helpful? Give feedback.
And I figured it out through trial and error:
Not sure if it's the 100% correct way, but it 100% works