ASP: Difference between revisions

From Sage CRM Knowledge Base
Created page with " Create a communication code //create the communication ***************************************************** var recCommunication = eWare.CreateRecord("communication"); rec..."
 
Blanked the page
Line 1: Line 1:


Create a communication code
//create the communication *****************************************************
var recCommunication = eWare.CreateRecord("communication");
recCommunication.comm_type = "Task";
recCommunication.comm_action = "EmailOut";
recCommunication.comm_status = "Complete";
recCommunication.comm_priority = "Normal";
recCommunication.comm_datetime = getCRMDate()
recCommunication.comm_todatetime = getCRMDate()
recCommunication.comm_note = SMSNote;
recCommunication.comm_caseid = caseid;
recCommunication.SaveChanges();
//create the comm_link record **************************************************
var recCommLink = eWare.CreateRecord("comm_link");
recCommLink.cmli_comm_userid =getUserId();
recCommLink.cmli_comm_communicationid = recCommunication.comm_communicationid;
recCommLink.cmli_comm_personid = personid;
recCommLink.cmli_comm_companyid = companyid;
recCommLink.SaveChanges();
Response.Write("Communication created");

Revision as of 15:37, 8 February 2012