Work notes not showing up on RITM record form but visible in the list view.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-30-2024 05:19 AM
Hi Community,
We can see that a note "RITM auto-closed by daily script" is visible in the list view of RITM record but not visible on the RITM record. Can you pls help as why the work note is not visible in the RITM record. We need the work note to be visible on RITM record as well. We deliberately set workflow as false to avoid the RITM closure email notification to the requestor but failing with work note. Is there a better to accomplish this ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-30-2024 05:34 AM - edited ‎07-30-2024 05:44 AM
Hello @Ashish Gupta8 ,
Script logic looks fine to me. Try it by removing setworkflow false. But still you are facing issues you can use "addWorkNotes()" method to print worknote or verify the background name of the worknote field from the form/record view.
Thank you!!
Dnyaneshwaree Satpute
Tera Guru
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-30-2024 05:38 AM
Hi @Ashish Gupta8 ,
your script is working fine but
when you use setWorkflow(false) the journal entry is not audited and hence it won't show in activity log
https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB0867584
refer link:
https://www.servicenow.com/community/itsm-forum/update-worknotes-with-setworkflow-false/td-p/2353855
Please mark helpful & correct answer if it's really worthy for you.
Thanks,
BK
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-31-2024 07:28 AM
yes, seems work notes update not feasible with set workflow.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-31-2024 09:42 PM
Hi @Ashish Gupta8 ,
Yes, if we use setWorkflow(false) the journal entry is not show in activity log.
Please mark helpful & correct answer if it's really worthy for you.
Thanks,
BK