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
jishan royjishan roy 

When a is Account record is checked for Non Qualified checkbox to true the related Contacts for that Account should also get non -qualified check box as true. Create field Non-Qualified on Account and Contact

When a is Account record is checked for Non Qualified checkbox to true the related Contacts for that  Account should also get  non -qualified check box as true.
Create field Non-Qualified on Account and Contact
how can i achieve its done on process builder or need to write trigger?
thanks in advance.
AnkaiahAnkaiah (Salesforce Developers) 
Hi Jishan,

Process builder will not available in future.
You can achieve this by using record triggered flow/trigger.

Which one you need?

Thanks!!
 
AnkaiahAnkaiah (Salesforce Developers) 
Hi Jishan,

try with below trigger. change the API names as per your org.
trigger Contactfieldupdate on Account (after update) {
    
    List<contact> conlistupdate = new List<contact>();
	map<id,Account> mapaccidwithvalues = new map<id,Account>

    for(Account acc : Trigger.New) {	
	If(acc.non_qualified__c == true && acc.non_qualified__c!=trigger.oldmap.get(acc.id).non_qualified__c){
    mapaccidwithvalues.put(acc.id,acc);
		
	}
}

for(contact con:[select id,non_qualified__c,AccountId from contact where AccountId=:mapaccidwithvalues.keyset()]){
if(mapaccidwithvalues.containskey(con.AccountId)){
con.non_qualified__c = mapaccidwithvalues.get(con.AccountId).non_qualified__c;
conlistupdate.add(con);

}
}

	update conlistupdate;
}

If this helps, Please mark it as best answer.

Thanks!!