function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
sfdclearnsfdclearn 

Bringing all the opportunity product names in the custom text field in Account object.

I have a custom text field in the Account. And i am trying to copy all the opportunity product names of the associated account in the custom text field.

Does anyone have sample trigger for this?

 

Thanks!

nickwick76nickwick76

Just so that I understand. 

Your account may have 0->X opportunities. Each opportunity have 0->X opportunity products.

You want to copy the opportunity products names of all these and put in this custom text field when saving an account?

 

// Niklas

sfdclearnsfdclearn

yes.to copy all the product names in a custom text field in the account object.