+ Start a Discussion
rahul Shukla 37rahul Shukla 37 

custom object field value need to update on opportunity based on checkbox field on contact

Hi All,

I have one custom object daily rates, in which i am having one field rates and one picklist field is category(which include infant toddler and 3+), another object i have contact which also have three checkbox field (infant, toddler and 3+), if any of checkbox become true on contact, then i want to update base_rate field on opportunity and rate should fetch from the daily rate object, that i already set based on category (infant,toddler and 3+).
Please help me how can i achieve this scenerio.  
ShirishaShirisha (Salesforce Developers) 
Hi Rahul,

Greetings!

You can create process builder to update the fields based on the related Object's field.Otherwise,you can create the trigger to achieve the same on after/before update.

Please refer the sample code in the below link:

https://www.forcetalks.com/blog/salesforce-apex-trigger-child-to-parent-trigger-using-map/

Kindly mark it as best answer if it helps so that it can help others in the future.

Warm Regards,
Shirisha Pathuri