Work notes from Incident
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-28-2023 06:06 PM - edited 03-01-2023 09:09 AM
Hi guys, I have a scenario where to get all the work notes from the parent (Incident) to Inc task when a Inc task is created. For this I have written Before Insert BR on Inc task but it is not working.
Also need to get latest work notes added by user only from Incident to Incident task (from OOB it's again going to Incident work notes). Please suggest. Thanks.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-28-2023 06:28 PM
Hi,
Unfortunately, your last line of your post above adds a confusion piece to this. You already said you're getting ALL the work notes from the parent Incident to the Incident Task when the task is created. So you'd already have them...I think you mean any new work notes after that initial load? Please provide more information and try your best to say it clearly for those of us without the context you have so that we can understand.
For the first part, getting all the work notes, can you double-check the actual field used on the incident task that relates it to the incident record? Out of box, that field is called simply "incident"....so current.incident.work_notes.getJournalEntry(-1);
Please consider marking my reply as Helpful and/or Accept Solution, if applicable. Thanks!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-28-2023 09:42 PM
Hi @SG23 ,
Please try current.work_notes = current.source_record.comments_and_work_notes.getJournalEntry(-1);
I tried for child incident and used below code, worked perfectly. Attached screenshot
current.work_notes = current.parent_incident.comments_and_work_notes.getJournalEntry(-1);
Please mark answer correct if it is helpful.