You need to sign in to do that
Don't have an account?
Rain.
Update long-text field via Apex. Possible?
Hi all!
Question is, is it possible to write a trigger to update a long-text field with data while always keeping the previous data in it as well?
In more detail - whenever a custom-object record is created, then it would update the record related Account text-field with the name, while keeping all the previous names in that field.
So the field on Account would look like this : Name1, Name2, Name3.
Thanks!
Question is, is it possible to write a trigger to update a long-text field with data while always keeping the previous data in it as well?
In more detail - whenever a custom-object record is created, then it would update the record related Account text-field with the name, while keeping all the previous names in that field.
So the field on Account would look like this : Name1, Name2, Name3.
Thanks!
All Answers
Just wondering, will I run into any sort of limits when there are more than 100k of such records created that will update their Account field?
Or is it something that can be worked through via Lists/Maps?
The reason for this quite dirty workaround is reporting functionality.
We have custom object 'Purchases'.
Accounts that can have many of such records.
Now there is additional custom object 'Mailings Sent'.
Accounts can also have many of these.
Marketing people want to report on Mailings Sent, Purchases and Account data even though two these are not related, aside from that one Account in the middle.
Unable create a custom report type that includes data from all 3.
So as long as we'd even have this 'Mailings Sent' name on Account record, they would be happy.
// Also thank you for the batch-job idea. Will look into it.