Contacts Module Button not converting to custom module

Contacts Module Button not converting to custom module

I'm trying to create a function that sends a contact from the Contact Module to a custom module FormerMembers (API name). I've commented out the delete line of code until I can get this operational. I get the success message, but nothing seems to be created. Any assistance would be very appreciated.

ContactsIdLong = ContactsId.toLong();
ContactsDetails = zoho.crm.getRecordById("Contacts",ContactsIdLong);
info ContactsDetails;
first = ifnull(ContactsDetails.get("First Name"),"");
last = ifnull(ContactsDetails.get("Last Name"),"");
name = first + " " + last;
FormerMembersMap = Map();
FormerMembersMap.put("First Name",ifnull(ContactsDetails.get("First Name"),""));
FormerMembersMap.put("Last Name",ifnull(ContactsDetails.get("Last Name"),""));
FormerMembersMap.put("Email",ifnull(ContactsDetails.get("Email"),""));
FormerMembersMap.put("Phone",ifnull(ContactsDetails.get("Phone"),""));
FormerMembersCreate = zoho.crm.createRecord("Former Members",FormerMembersMap);
info FormerMembersCreate;
newFormerMembersId = FormerMembersCreate.get("Id");
//url = getUrl("https://crm.zoho.com/crm/private/xml/Leads/deleteRecords?authtoken=" + input.Authtoken + "&scope=crmapi&id=" + input.leadId);
return "Sent to Former Member.";

Argument Mapped - ContactsId = Contacts - Contact Id