update the list type field on a parent incident with multiple child incidents with unique values
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-11-2024 07:49 AM
I need to update a parent incident list type field with values from multiple child incidents. Each child incident is meant to pass a unique value to the parent incident to aggregate the vlaue in the parent incident.
My script updates the parent incident field, but when a new chield incident is related, the value of the field changes to the value of the newly related child incident. (replaces the value, not add)
How do i fix this? I am using a business rule.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-11-2024 09:50 AM
Because your script says it needs to replace it. You literally say ' parentincident.u_user_location = current.u_user_location' .
I'm not sure what's the logic behind the functionality (get all of the locations in a list field? -> why not add 'location' as column to the related list of child incidents?).
Since it's a list field. It's a list field, so I guess it's a reference to the location table and you want to show the locations from the child incidents in there? You will need to create an array into which you push the new location when a child incident is created.
Please mark any helpful or correct solutions as such. That helps others find their solutions.
Mark
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-06-2024 05:11 AM
I've got a similar requirement. Did you manage to achieve this somehow? If so, could you share an updated script for the same.