- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā10-14-2018 04:36 PM
I'm using list edit on an embedded list on a form to allow users to insert records into the child table when the record is inserted for the parent table. The form is a Change Request records which has an embedded list called "Approvers". I requirement is to allow users to add more approvers using the embedded list:
Can use the insert callback field on the relationship for the embedded list to set a reference field on the child table (Approvers) to capture the parent record?
I'm trying to find information and examples on what the insert callback field does and how to use it.
Does anyone have any ideas on how I might accomplish this?
Thanks.
Solved! Go to Solution.
- Labels:
-
Scripting and Coding

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā10-16-2018 09:23 AM
Yeah, my experience is that you're not going to make anybody happy with embedded lists. They're really way too much trouble to work with in my opinion for anything other than a simple display of data. I've implemented change management successfully dozens of times...and never done it with an embedded approvers list. I'd guide them to a standard related list and make everyone's lives simpler. š

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā10-15-2018 04:46 AM
I don't think you need an insert callback. You can just use an 'after insert' business rule on the 'sysapproval_approver' table with conditions that specifically match that approval. You'll need to have some way of identifying that doc record from your script though so the script knows which doc record to access and update.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā10-15-2018 05:16 PM
Thanks Mark - but that's my dilemma. How do I get the doc id of the parent record in order to put it on the child record (in the embedded list) when they are being submitted at the same time?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā10-15-2018 07:11 PM
This is why I avoid embedded related lists at all costs. You'll have a much easier time if your approvers are just in a standard related list.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā10-16-2018 08:47 AM
Yes - I agree. Just trying to make the client happy - famous last words! Thanks for at least trying to help me out.