Issue with Async Business Rule
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-06-2024 09:25 AM
var gb = new GlideRecord('cmdb_ci');
gb.addEncodedQuery('correlation_id=test');
gb.query();
if (gb.next()) {
gs.log('yes', 'BR_test');
}
- Labels:
-
vancouver release
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-06-2024 11:12 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-06-2024 05:39 PM
Hi @Maik Skoddow,
My use case is to check if CI with given correlation_id exists in CMDB, if it does then create relationship/record in cmdb_rel_ci table.
As it is taking much time to query and find the CI using After BR, so I want it to make as Async BR.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-06-2024 08:53 PM
okay, got it. But what exactly is the issue? You only write that something does not work, but what? What is your expectation and what is the observed result?
Maik
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-06-2024 09:01 PM
Hi @Maik Skoddow ,
Why the simple code is not returning result, even I tried multiple ways, The same is working in After but why not in Async.