+ Start a Discussion
wendy chan 3wendy chan 3 

Custom Rollup Field without Object relationship

I have two object - Object A and Object B. Object A has a field "Total Amount" and Object B has a field "Amount". Both objects have NO relation with each other. What I want to do is bring in total SUM of "Amount" (from Object B) in "Total Amount" (of Object A) using trigger. Can some one please help me with an example?
NagendraNagendra (Salesforce Developers) 
Hi Wendy,

I believe amount might no be a valid field for the account object.

if it is a custom field please give a try by appending    __c at the end of the field name which should probably resolve the issue.

The valid input should be amount__c which should help you.

Please let us know if the issue persists.

Hope this helps.

Please mark this as solved if it's resolved.

Regards,
Nagendra.
 
wendy chan 3wendy chan 3
Hi Nagendra, amount__c field is a custom fields so it does have __c at the end ! Do you have any other suggestions? If possible, can you please help me with a sample code?