AnsweredAssumed Answered

Copy data from 1-1 relationship using logic hook (Enterprise

Question asked by KarenV KarenV on Jun 22, 2015
Latest reply on Jun 29, 2015 by Rolustech Rolustech
Hello all, 

I have a custom module, Library (LIB001_Lib_Library)  that is related to Accounts in a 1-1 relationship. 

In Accounts, I would like to populate custom fields in Accounts with the data from the custom module. Calculated fields won't work because I need the fields to be editable. 

I'm still very new to logic hooks so I don't know how to access the Library data from Accounts or whether it should be a before_save or after_save logic hook.

Could someone help me with the syntax of how to retrieve data from Library and then write it to the field in Account?

Thank you so much!!