There is two objects company and employee , employee has lookup relation from company, and it has one pick list field ,which hold VP,CEO,CFO,etc when you create record in employee ,I need only VP records count that should be update in company
This can be accomplished using a trigger on employee object such that it can be used to update the company when the picklist value on employee is as mentioned in your requirement.
sample code available on the thread:https://developer.salesforce.com/forums/?id=906F00000008yVgIAI
This can be accomplished using a trigger on employee object such that it can be used to update the company when the picklist value on employee is as mentioned in your requirement.
sample code available on the thread:https://developer.salesforce.com/forums/?id=906F00000008yVgIAI