You need to sign in to do that
Don't have an account?
yervandy
Accessing related list and inserting in text area
I would like help on writing a trigger on Account before update that gets the related contacts, then inserts that list of contacts in an account text area field.
The text area will contain:
contact name 1\n
contact name 2\n
etc...
I'm not an apex developer so I'm not sure where to begin, so any sample code for doing something like that would be a great help.
Thanks.
I'm not sure whether the text area field can be inserted manually, because the line feed and '<br>' will be escaped.
Thanks for the reply. How can this be done with a custom object? My Case object has a child object Case_Update__c. I would like to have that list of updates associated with the case to be written to a text area on a case. Here are the steps.
I hope that makes sense. I've been struggling a lot with this.
And thanks again.