Modify a scheduled script to send only if the knowledge base sys id is matched
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-29-2025 04:19 AM
1 REPLY 1

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-29-2025 04:26 AM
@misolarz Replace the script in your condition field on the scheduled script as follows.
answer=false;
var kbKnowledge = new KBKnowledge();
var expectedSysID= '79783aa81b1b8110244e7558dc4bcbfa';
if(kbKnowledge.ys_id==expectedSysId){
answer=true;
}
This will make the schedule job only run when the sys_id of the KB article and expected sys_id matches.
Hope this helps.