On change() of Work notes(journal field)- Client script
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-07-2019 09:03 AM
Hi All,
As we know, we have Work notes(journal) field on incident form.
My requirement:
1. when ever any end user/any user opens and post the work notes then logged user primary role should be populated in activity log.
a). I have u_primary role in user table- which is storing users' primary role.
b).i have same field in incident form to fetch the same role from user table to incident table and same is configured in activity log list to show changes.like below
when ever logged in user post the work notes using post button, then user role shoulb be populated in activity log.
Can any one help me?.
Thanks,
Aahitha
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-07-2019 11:52 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-17-2019 01:28 PM
Try adding a new BR on the sys_journal_field.
In the script, query the primary role of the user and add it as a work note
Be sure to turn off the workflow
gr.setWorkflow(false); to avoid going into a infinite loop.
Vinod Kumar Kachineni
Community Rising Star 2022