- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-01-2023 04:17 PM
Hello,
I am trying to add a related list on the incident form that has related communication tasks from the incident_alert_task table. I created a relationship below . it shows me all records from the incident_alert_task but not of the specific incident when I open the incident. What am I missing?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-01-2023 08:23 PM
Hi @Liz Abraham ,
Please correct the code in the Relationship Communication Tasks as shown below
function refineQuery(current, parent) {
current.addQuery('source_incident', parent);
})(current, parent);
I have tried on my PDI and its working
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-06-2023 09:33 AM
the customer's requirement is to have a button on the incident form that creates a comm plan when the button is clicked with it's associated tasks. are you saying we have to script using the advanced option in the relationship record?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-06-2023 10:43 AM
Yes, In the relationship record we have to script using the advanced option
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-07-2023 08:20 AM
was able to with the help of my colleague and used 'incident_alert.source_incident' in the script. this shows now only those associated with the incident.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-27-2023 03:39 AM
Hello Liz , Can you share the relationship code here. Since I tried the accepted solution code and its not working. Its showing me entire Incident communication task records. and then I tried 'incident_alert.source_incident' but its showing me no record at all.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-27-2023 01:38 PM
Hi Sneha,
See below.
Hope this helps.