Field Name | Mandatory | Field Type | Field Values |
Summary | Yes | Single Line | |
Priority | Drop Down | Low, Medium, High, Critical | |
Due Date | Date | ||
Name | Name | ||
Email | Yes | Email | |
Phone | Phone | ||
Service Address | Address | ||
Billing Address | Address | ||
Preferred Date 1 | Date | ||
Preferred Date 2 | Date | ||
Preferred Time | Drop Down | Anytime, Morning, Afternoon, Evening | |
Preference Note | Multi Line |
customer_email = input.Email; search_resp = invokeurl [ url :"https://fsm.zoho.com/fsm/v1/Contacts/search?api_name=Email&value=" + customer_email type :GET connection:"fsm" ]; customer_id = search_resp.get("data").get(0).toMap().get("id"); customer_resp = invokeurl [ url :"https://fsm.zoho.com/fsm/v1/Contacts/" + customer_id type :GET connection:"fsm" ]; customer_data = customer_resp.get("data").get(0).toMap(); Billing_Address_Map = customer_data.get("Billing_Address").toMap(); if(Billing_Address_Map != null) { billing_Address_map = Map(); billing_Address_map.put("id",Billing_Address_Map.get("id")); } Service_Address_Map = customer_data.get("Service_Address").toMap(); if(Service_Address_Map != null) { service_Address_map = Map(); service_Address_map.put("id",Service_Address_Map.get("id")); } territoryResp = invokeurl [ url :"https://fsm.zoho.com/fsm/v1/Territories" type :GET connection:"fsm" ]; terrId = territoryResp.get("data").get(0).get("id"); createMap = Map(); createMap.put("Summary",input.Summary); createMap.put("Contact",customer_id); createMap.put("Priority",input.Priority); createMap.put("Billing_Address",billing_Address_map); createMap.put("Service_Address",service_Address_map); createMap.put("Phone",input.Phone_Number); Preference_Map = Map(); Preference_Map.put("Preferred_Time",input.Preferred_Time); Preference_Map.put("Preference_Note",input.Preference_Note); createMap.put("Preference",Preference_Map); createMap.put("Territory",terrId); createList = list(); createList.add(createMap); NewCreateMap = Map(); NewCreateMap.put("data",createList); create_resp = invokeurl [ url :"https://fsm.zoho.com/fsm/v1/Requests" type :POST parameters:NewCreateMap.toString() connection:"fsm" ]; info create_resp; |
Learn how to use the best tools for sales force automation and better customer engagement from Zoho's implementation specialists.
If you'd like a personalized walk-through of our data preparation tool, please request a demo and we'll be happy to show you how to get the best out of Zoho DataPrep.
You are currently viewing the help pages of Qntrl’s earlier version. Click here to view our latest version—Qntrl 3.0's help articles.