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
sreekanth cheerasreekanth cheera 

Using Custom Fields?

when Account is set as inctive(picklist) , all underlying Contacts should automatically be marked as incative(picklist) and the Expiredate on the Accountt  should be blank.
VamsiVamsi
Hi,

Something we can get this with Formula fields on Contact but this will be read-only. Also there is no way to mark the existing custom pick-list field to in-active untill and unless if we use any Trigger to update all the contacts 
Sohan Raj GuptaSohan Raj Gupta
Hi Sreekanth,

You can use Process Builder to achive your requirment. Process Builder is easy and no need to make any changes in code.

Regards,
Sohan Raj Gupta
sreekanth cheerasreekanth cheera
I have one requirement to do programmatically.  by using trigger
Sohan Raj GuptaSohan Raj Gupta
Hi Sreekanth,

Yes, you can write your code in tigger. You just need to select contact using account id and assign in list. Using list you can inactive all contact associated with that account.

Hope this will help you.

Regards,
Sohan Raj Gupta
sreekanth cheerasreekanth cheera
Ya i did it but 
Expiredate on the Account should be blank. it showing error.