How to create a new Contact Person in Books via Flow
I already have the Contact created in Books via Flow now I want to add just a Contact Person but I think my list/map formatting is wrong. This is what I'm trying to do:
- // Create contact person for the customer
- //
- // Create a map for a contact person
- contactPersonData = Map();
- contactPersonData.put("first_name",customerNameFirst);
- contactPersonData.put("last_name",customerNameLast);
- contactPersonData.put("email",customerEmail);
- contactPersonData.put("phone",phonenumber);
- contactPersonData.put("address",address1);
- contactPersonData.put("city",city);
- contactPersonData.put("state",state);
- contactPersonData.put("zip",postcode);
- contactPersonData.put("country",country);
- // Create the contact person record in Zoho Books
- createContactPersonResponse = zoho.books.createRecord("contact_persons",orgId,contactPersonData,"books_invoicecontact_connection");