How to use Business Rule to print to SCTASK worknotes and also to RITM additional comments
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-23-2023 02:43 AM
Hello Experts,
I have a Business Rule set to abort if user is requesting a software they already have. This BR is to prevent duplicate software entitlements. However, after the operation aborts I would like to notify the user that an abort was done. Is there a way to simple print a sentence to the SCTASK worknotes and to the RITM additional comments at the same time?
Below is the full business rule script:
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-23-2023 02:52 AM
Hello @Jiajie Li ,
If they are requesting it via catalog item , when is this abort action happening is it after RITM has been created or exactly when ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-23-2023 01:07 PM
Hello @Mohith Devatte
The abort action happens after RITM and SCTASK is created. When ITIL user selects a duplicate software in SCTASK and Close or Update then the abort action is triggered.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-28-2023 02:39 AM
Hello @Mohith Devatte
Abort action happens when SCTASK is closed/updated. When user clicks Close or Update on the SCTASK, then it checks for duplicate. If there is duplicate, it aborts.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-23-2023 04:30 AM
Hello @Jiajie Li ,
From what I understand, your br is triggered before insert, which is logical, in order to update SCTASK worknotes and to RITM I would recommend to create a script include and call him right before the line of code "current.setAbortAction(true)", you can send as a parameter current user so that later you can search for that records.