Set Created by or Owner
Set Created by or Owner
The application I have developed seems to always put created by and owner (in the crm record) as myself, no matter which of my account users are submitting the form. I have pasted my code below that submits to CRM, and have set the settings to have created by as the person submitted but it still defaults to myself.
Any ideas?
- //create the CRM vs Creator fields map to push data to the CRM module.
- myFieldMap = Map();
- //add values to the map. CRM fields first and then Creator fields ( without the quotes ). Creator field’s deluge name is used here.
- myFieldMap = Map();
- myFieldMap.put("Guest Name",input.Guest_Name);
- myFieldMap.put("Guest 2 Name",input.Guest_2_Name);
- myFieldMap.put("Tour Vendor",input.Tour_Vendor);
- myFieldMap.put("Email",input.Email);
- myFieldMap.put("Guest Phone",input.Phone_Number);
- myFieldMap.put("Tour Type",input.Tour_Type);
- myFieldMap.put("Scheduled Tour Date",input.Scheduled_Tour_Date);
- myFieldMap.put("Scheduled Tour Time",input.Scheduled_Tour_Time);
- myFieldMap.put("Promised Gifts",input.Promised_Gifts);
- myFieldMap.put("Gift Notes",input.Gift_Notes);
- myFieldMap.put("Deposit",input.Deposit);
- myFieldMap.put("Refundable Deposit",input.Refundable_Deposit);
- myFieldMap.put("Refund Amount",input.Refund_Amount);
- //function to push data to CRM
- response = zoho.crm.create("CustomModule2",myFieldMap);