Help on Custom Function to Update Fields from CRM Variables

Help on Custom Function to Update Fields from CRM Variables

Hello,

I was wondering if there was anyone who could help me with an example script of how to update module fields with CRM Variable values.  I have found many sample scripts on updating fields from related modules, but not from CRM Variables.

Also, on a second issue, I need to populate a module field with the Record Owners email from the User data.

 Any help would be greatly appreciated!

Thanks,

Rob