Map Fields from a custom module into a new Deal

Map Fields from a custom module into a new Deal

Hi There!

I want to map the details of a vessel into the deal field when a new deal is created.

I have created a vessel module that contains all of the relevant details that will have be entered into the deal.

I would like all of the additional details to auto-populate once I enter an IMO Number into the Deal (the individual number given to each vessel.)  The IMO Number is also in the vessel module details.

I know I need to use a custom function for this - unless anyone has any other suggestions?

If I do use a custom function how should I do it?

Thanks for your help.