How to create an Event with a link in description using deluge
Hello guys,
I am trying to create an event using deluge writing something like the below (in a mass update action)
- IdsList = formID.toList("|||");
m_ScheduleMeeting = Map();
m_ScheduleMeeting.put("$se_module","TLMX_Technical_Works_Form");
m_ScheduleMeeting.put("All_day",false);
m_ScheduleMeeting.put("Event_Title","TEST Consultation: Call with TEST LEAD");
m_ScheduleMeeting.put("Type","Prospective Meeting");
m_ScheduleMeeting.put("Start_DateTime",zoho.currenttime.addBusinessDay(1).toString("yyyy-MM-dd'T'HH:mm:ss","America/New_York"));
m_ScheduleMeeting.put("End_DateTime",zoho.currenttime.addBusinessDay(1).addMinutes(30).toString("yyyy-MM-dd'T'HH:mm:ss","America/New_York"));
m_Pattern = Map();
m_Pattern.put("RRULE","FREQ=DAILY;INTERVAL=1;DTSTART=2022-03-02");
m_ScheduleMeeting.put("$send_notification",true);
m_Participant = Map();
m_Participant.put("type","email");
m_Participant.put("participant","test@test.gr");
l_Participants = List();
l_Participants.add(m_Participant);
m_ScheduleMeeting.put("Participants",l_Participants);
m_ScheduleMeeting.put("Status","Not Started");
geturl = "";
newLine = hexToText("0A");
for each IdStr in IdsList
{
formInfo = zoho.crm.getRecordById("Installation",IdStr.toLong());
getOffer = formInfo.get("Relevant_Sales_Order").get("id");
relatedoffer = zoho.crm.getRecordById("Sales_Orders",getOffer.toLong());
getaddress = relatedoffer.get("Billing_Street") + " " + relatedoffer.get("Billing_City") + " " + relatedoffer.get("Billing_Code") + " " + relatedoffer.get("Billing_State");
geturl = geturl + "<a href='";
geturl = geturl + "https://creatorapp.zohopublic.eu/g4sapp/g4s-installation/Deltio_Episkepsis/record-edit/Deltio_Episkepsis_Rep/";
geturl = geturl + "/USOwfZDj7AKtXQTOyRjX2NYP2vxxwxEvWkXWBdEuS8jbWtebQ3vMyen0FsNrvgOMk2SBhYGqvStP94qxZ5VYz3HrpCH64B2sxF";
geturl = geturl + "'>Technician Form " + formInfo.get("Name");
geturl = geturl + "</a>";
geturl = geturl + newLine + newLine;
}
m_ScheduleMeeting.put("Venue",getaddress);
m_ScheduleMeeting.put("Description",geturl);
r_CreateMeeting = zoho.crm.createRecord("Events",m_ScheduleMeeting);
Everything works fine with this code except of the Description in the Zoho Event. I do not know how to pass an HREF link to the description of the event. But as you can see in the google calendar it shows it correctly as a link.
How can I solve it?
2) Zoho Event has a character limitation of about 30000 in the description link.
As I would like to have more than 10 links generated each time inside the description of the event
is there any way to make the creator link shorten? Maybe using tinyurl to produce shorten links with deluge.