Open URL for the CRM Mobile App?
Hi,
Currently having great success setting up Zoho CRM and Creator for my business, however I've encountered an issue and was wondering if there is a solution.
I have made a custom button to convert a Lead to an Appointment (custom module). The code maps the Lead fields, creates a new Appointment record, and then opens that same Appointment record so we can complete the form. To open the record I've used an Open URL function.
This works perfectly on the web browser. When I try this on the app it just shows me the url link and when clicked will open the mobiles browser app (Screenshot below

).
Is there any other alternative to open the Appointment record automatically so it works on both the app and browser?
- getLeadId = zoho.crm.getRecordById("Leads",leadid);
- getFirstName = getLeadId.get("First_Name");
- getLastName = getLeadId.get("Last_Name");
- getEmail = getLeadId.get("Email");
- getMobile = getLeadId.get("Mobile");
- getLandline = getLeadId.get("Landline");
- newRecordInfo = Map();
- newRecordInfo.put("Name",getFirstName);
- newRecordInfo.put("Last_Name",getLastName);
- newRecordInfo.put("Email",getEmail);
- newRecordInfo.put("Mobile",getMobile);
- newRecordInfo.put("Landline",getLandline);
- newRecordInfo.put("Lead_Id",leadid);
- response = zoho.crm.createRecord("Appointments",newRecordInfo);
- getAppointmentId = zoho.crm.getRecords("Appointments");
- for each r in getAppointmentId
- {
- if(r.get("Lead_Id") == leadid)
- {
- appId = r.get("id");
- }
- }
- openUrl("https://crm.zoho.eu/crm/org20070696131/tab/CustomModule1/" + appId + "/edit","parent window");
- return "";