› Forums › Classic DFFS › Rule with Managed META Data column
- This topic has 8 replies, 2 voices, and was last updated 4 years ago by
Leonid.
-
AuthorPosts
-
-
October 28, 2019 at 18:38 #27505
-
October 29, 2019 at 20:27 #27515
Alexander Bautz
KeymasterHi,
This appear to be a bug and I’ll get it fixed in a new version in a day or two.Sorry for the inconvenience,
Alexander -
November 4, 2019 at 22:43 #27581
Leonid
ParticipantThanks Alex!
Any plans to make setting value available for META data field in the Rule? Sofar it doesnt work-
November 5, 2019 at 12:31 #27587
Alexander Bautz
KeymasterI’m not sure what you mean – I can use a ManagedMetadata field in the Set field value in the bottom of a rule – can you give me some more details?
Alexander
-
-
November 5, 2019 at 17:02 #27589
-
November 5, 2019 at 20:45 #27605
Alexander Bautz
KeymasterAh, you are right – when using the “Only if the field is empty” checkbox the value is not properly validated as empty and the field will not be set. I’ll get this fixed in the next release.
Until then, you can put this in your Custom JS:
function setDataConfidentialityToPrivate(){ if(String(getFieldValue("YOUR_FIELD_NAME")).length === 0){ setFieldValue("YOUR_FIELD_NAME", "YOUR_VALUE"); } }
And put the function name setDataConfidentialityToPrivate in the Run these functions / trigger these rules field in your rule.
Replace YOUR_FIELD_NAME and YOUR_VALUE with the correct values.
Alexander
-
November 5, 2019 at 21:47 #27615
-
November 6, 2019 at 20:10 #27624
Alexander Bautz
KeymasterIt looks like you have white-space before and after the string – can you post your code?
Alexander
-
November 6, 2019 at 23:17 #27634
-
-
AuthorPosts
- You must be logged in to reply to this topic.