Business Rule
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-01-2023 03:02 PM - edited 09-01-2023 05:44 PM
Hi Team i have a field that is from CMDB Integration and when i try to call him in business rule it doesn't work does anyone know why ?
if (current.name_of_field === 'Active')
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-01-2023 03:07 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-01-2023 03:08 PM
Hello @yoli1 ,
are you sure that you are giving the correct back end name of the field ?
also what type of field is it ?
if its a check box field you need to compare it with true or false instead of active like below
if (current.name_of_field ==true)
If its not check box then check both back end name of field value and the backend value of active too .
Hope this helps
Mark the answer correct if this helps you
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-01-2023 03:12 PM - edited 09-01-2023 05:45 PM
HI @Mohith Devatte it is a String value and yeah the back end name is correct here is the field
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-01-2023 03:11 PM
Uhhh... does the field have a string value of "active"?
You could just run a background script and get it to output whatever that field has as a value.