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
Madhuri GowdaMadhuri Gowda 

Not sure weather to use cross object formula or process builder or triggers, please help

i have a field called (Amount) on opportunity object, when i update this amount field on opportunity object, the same field value must be populated in a custom object called (Payment__C), the name of field in custom object called "payment" is (Total_Sale_Value_of_a_Property__c)

now the tricky part is opportunity is related to account, and account is related to custom object payments (Payment__c)
but opportynity is not related to payment object
now if field is populated in opportunity, the same field value should populated in the custom object payment(payment__c)
can i achive this in cross object formula or process builder or triggers

Please help
Greg HGreg H
You'll have the most success using an Apex trigger. I highly recommend having the trigger call an @future annotated method or queueable interface so that the logic can be run as resources are available. That will reduce User disruption as they are updating Opportunity records.
-greg