AnsweredAssumed Answered

How to conditionally change the account status?

Question asked by cfton cfton on Nov 19, 2014
Latest reply on Nov 25, 2014 by cfton cfton
Hi All:
I want to change account status (A field in Account table) to "provisional" if :
user tries to create a contact for this account and if this account has :
- website
- Physical address
- Its status is "New"
I know it should be done in hook (after_save)
But may you please help me how??
Please help me how may I retrieve account data and change its status to "Provisional" this is more than a week that I'm working on it and couldn't get any idea ....

Thanks,
Rega.

Outcomes