Update "Original Close Date" field when open deal is updated

Update "Original Close Date" field when open deal is updated

Hi

I would like to write a function that
if "Original Close Date" is empty
Update the "Original Close Date" with the "Closing Date"

I plan to do this by using a Workflow on the edit of a Deal. So just need the function for this now.

Thanks!