I want to show meeting notes from Client Meeting module to on Deal page under deal module.
c = zoho.crm.getRecordById("Deals2","Client_Meetings",recordID.toLong());
info c;
cid = ifnull(c.getJSON("Deals").get("recordID"),"");
info cid;
p = zoho.crm.getRecordById("Deals",cid);
// Copy Related notes
RelatedNotes = zoho.crm.getRelatedRecords("Notes","Client_Meetings",recordID.toLong());
for each note in RelatedNotes
{
notemap = Map();
notemap.put("Parent_Id",p);
notemap.put("Note_Content",note.get("Note_Content"));
notemap.put("Note_Title",ifnull(note.get("Note_Title"),""));
notemap.put("se_module","Deals");
notecreate = zoho.crm.createRecord("Notes",notemap);
}