Custom Function Question - Create record, record name

Custom Function Question - Create record, record name

I'm trying to create a custom function that creates a new deal from a custom module record.  Only thing i don't know how to do is, program the function to get the deal name how we want it.

We are an insurance broker and we use a custom module to manage the life cycle of a policy.  When a policy is getting close to expiring we want a new deal created with info from the custom module captured in the deal.  I've been able to get this working how I want it using zoho.crm.createRecord function and mapping the fields from the custom module to the deals moduleThe only thing I can't figure out is having the function update the name of the record.

For example if a record name in the custom module is 'Policy 2019' we would want the new deal record's name to be 'Policy 2020'.  Not sure how to program this?  Hopefully my question makes sense.

Thanks for any help,
HC