Button that passes CRM Record to Creator Form

Button that passes CRM Record to Creator Form

Hi I want to create a button that takes a CRM record and imports into a Creator App.

If I understand this correctly, I need to write a deluge function that:
1. Collects the record
2. Creates a Map and Map fields from CRM to Creator
3. Send that over to Creator see below:

1. Collects the record
ClientLeadCollection = zoho.crm.getRecordById("Leads", LeadId);
First_Name = ifnull(ClientLeadCollection.get("First_Name"),"");
Last_Name = ifnull(ClientLeadCollection.get("Last_Name"),"");

etc...

2. Creates a Map and Map fields from CRM to Creator

myMap = Map();
myMap.put("Client_First_Name",First_Name);
myMap.put("Client_Last_Name",Last_Name);

etc...

3. Send that over to Creator see below:

CreateRecord = zoho.creator.createRecord("my_admin","myCreatorAppName","FormName",myMap,Map(),"zoho_creator");

Does that format look right?