Button in custom module to create a new Deal
We have a custom module that we'd like a button to create a new Deal. The custom module has some information we'd like to transfer over to make a new Deal.
We have written a function for this button. When the button is clicked, it shows an error.
Here is the code we have:
StringConvertToDeal(String CustommoduleId)
- customModuleDetails = zoho.crm.getRecordById("CustomModule5",input.CustommoduleId);
- mp = Map();
- mp.put("Deal_Name",ifnull(customModuleDetails.get("Name"),""));
- mp.put("Account_Name",ifnull(customModuleDetails.get("Account_Name"),""));
- mp.put("Contact_Name",ifnull(customModuleDetails.get("Contact_Name"),""));
- createDeal = zoho.crm.createRecord("Deals",mp);
- info mp;
- info createDeal;
- return "";
Additionally, a button needs a return value. What value is needed inside the "" on Line 9?