Customer_Details = map ()
//Add the customer details to the map variable [("QBValue", input.zoho)]
Customer_Details.put("GivenName",input.fullName_firstName);
Customer_Details.put("DisplayName",input.fullName_firstName + " " + input.fullName_lastName);
Customer_Details.put("BillWithParent",input.Is_sub_customer);
Customer_Details.put("FullyQualifiedName",input.Company_Name.Company_Name);
Customer_Details.put("CompanyName",input.Company_Name.Company_Name);
Customer_Details.put("FamilyName",input.fullName_lastName);
Customer_Details.put("PreferredDeliveryMethod",input.deliveryType);
//declare map variable to hold the Primary Phone number
PrimaryPhone = Map();
PrimaryPhone.put("FreeFormNumber",input.Primary_Phone);
//declare map variable to hold the email address
Primary_EmailAddr = Map();
Primary_EmailAddr.put("Address",input.Primary_Email_Addr);
//declare map variable to hold the mobile, fax number
Mobile_Phone = Map();
Mobile_Phone.put("FreeFormNumber",input.mobile_num);
Fax_Number = Map();
Fax_Number.put("FreeFormNumber",input.fax_number);
//declare map variable to hold the Customer ID
//Sales_Term_Ref = Map();
//Sales_Term_Ref.put("value",input.Company_ID);
//Sales_Term_Ref.put("name",input.Company_Name.Company_Name);
//declare map variable to hold the Customer ID
//Parent_Ref = Map();
//Parent_Ref.put("value",input.Company_ID);
//Parent_Ref.put("name",input.Company_Name.Company_Name);
//adding the email address to customer details
Customer_Details.put("PrimaryEmailAddr",Primary_EmailAddr);
//adding the phone number to customer details
Customer_Details.put("PrimaryPhone",PrimaryPhone);
Customer_Details.put("Mobile",Mobile_Phone);
Customer_Details.put("Fax",Fax_Number);
//adding the SalesTermRef and ParentRef to customer details
//Customer_Details.put("SalesTermRef",Sales_Term_Ref);
//Customer_Details.put("ParentRef",Parent_Ref);
createResponse = intuit.quickbooks.create("QB_AccountName","Customer","12314625#######",Customer_Details);
createResponse = createResponse.get("Customer");
id = createResponse.get("Id");
Writer is a powerful online word processor, designed for collaborative work.