AnsweredAssumed Answered

Any idea for after_save logic hook to check data change ?

Question asked by Autchara Chaiprom on Nov 7, 2016
Latest reply on Nov 9, 2016 by Sayad Sharif

Hi all,

 

I have 2 ways to do.

 

The first is using before save and after save for check data was changed I have been used in sugar 6.5 before.

http://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_7.7/Architecture/Logic_Hooks/Examples/Co… 

 

another ways is using after_save via arguments.dataChanges

http://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_7.7/Architecture/Logic_Hooks/Module_Hook… 

 

I think the seconds ways is look better because no need to create before save hook, easier.

 

How about you opinion or experience to using both way ? speed ? flexible ? Cons Pros ?

 

Sugar 7.7.1.1 Ent

Thanks,

May

Outcomes