Before BR with Update
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-14-2023 09:35 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-14-2023 09:39 PM
Hi @karthik65 ,
You can try something like this in ur code
rec.setWorkflow(false);
rec.update();
rec.setWorkflow(true);
Source: https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB0715782
Thanks,
Danish
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-14-2023 10:08 PM
@Danish Bhairag2 I have Scripts running after this BR. so we cannot use Setworkflow in this scenerio
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-14-2023 10:28 PM
Hi @karthik65 ,
I agree with Ankur here. As u r trying to update the record in another table you do require .update() here.
Thanks,
Danish
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-14-2023 10:18 PM
what are you actually doing in this BR? what's your business requirement?
It looks BR is on RITM table and you are updating catalog task, then why not to use update()?
Without update() record won't get updated
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader