Doubt in Dynamic Reference Qualifier using business rule ?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-19-2023 08:12 AM
1) I applied dynamic Reference qualifier for caller field in incident table.
2) Why do we need to select Global table instead of incident table while creating Business rule for Dynamic reference qualifier for caller field in incident table ?
@Mark Roethof , @Ankur Bawiskar
Regards
Jyothinath P
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-21-2023 12:44 AM
In early ServiceNow there were no Script Includes and the functionality was provided by Business Rules for table Global.
Here you need to define code that can be accessed from anywhere, including the Dynamic Reference Qualifier, so you need to make the code in the Business Rule globally accessible, so you need to select table Global.
If the Business Rule is NOT created for table Global, the code will NOT be available everywhere and it could not be used in Dynamic Reference Qualifiers either.
That said, as others have pointed out, you should not use Business Rules for table Global as they have performance implications.
As opposed to Script Includes which can be used everywhere and are loaded only when needed, code defined in globally accessible Business can be used everywhere but are ALWAYS loaded in every server transaction, even it those are not actually called from anywhere.