Create reminder task/appointments for users when record is inserted

By | September 7, 2016

Activities play an important role in business operations. In Sage CRM activities can be tasks, appointments, meetings and send email. We can associate activities with entities such as leads, Company, Person, Cases and Opportunities.
Business Users handle thousands of record activities every day. It is important for them to update or work on individual activities on time and complete. They can view their day to day activities on MY CRM calendar tab.
New Stuff: Handling Query Timeout Errors in Sage CRM
Now in this blog we are going to discuss how one can create automatic task or appointment when Case/Opportunity record is inserted/updated/progressed in Sage CRM.
Sage CRM Workflow is very powerful tool but one of the limitations is that Follow up Actions, such as ‘Create Task’ or ‘Create Appointment’ cannot be invoked on Primary Rules as Primary rules are executed in line with record execution when compared with transactional and global workflow rules.
The advantage of creating a reminder task or appointment is notify Users that they have task in hand assigned to then which needs to actioned. They can view tasks and appointments on their Calendar screen.
If we have a business requirement that states a task or an appointment must be created when Opportunity or Case is inserted then Communication record must be inserted for reminder to complete the record on time without falling.
Let’s say we have a requirement to create a communication record when new case is inserted in Sage CRM. Now to accomplish the requirement we can use Post Insert function of a Table level script on the Case entity.
For this we would be required to.
1) Fetch Case details.
2) Create a new communication record by linking Case ID to this Communication record.
3) Create a communication link record by linking communication record created above to this record.
Refer sample code that can be implemented in Post Insert function of TLS.
var newCaseRecord = CRM.FindRecord(“Cases”,WhereClause); //’ WhereClause fetches record inserted ID.
var intCaseId = newCaseRecord.Case_Caseid;
var intCaseUserID = newCaseRecord.case_assigneduserid;
var intPersID = newCaseRecord.case_primarypersonid;
var intCompID = newCaseRecord.case_primarycompanyid;
var CommRecord = CRM.CreateRecord(“Communication”);
CommRecord.Comm_ChannelId = CRM.GetContextInfo(‘user’,’user_primarychannelid’);
CommRecord.Comm_Type = ‘Task’;
CommRecord.Comm_Action = ‘ToDo’;
CommRecord.Comm_Status = ‘Pending’;
CommRecord.Comm_Priority = ‘Normal’;
CommRecord.Comm_Note = “<Communication Note>”; //’ Add required Communication Note
CommRecord.Comm_Description = “<Communication Meesage>”; //’ Add Communication description
CommRecord.Comm_CaseId = intCaseId;
CommRecord.SaveChanges();
Above code needs to be used upon inserting new record. If you have a business requirement which states to create task or appointment when record is progressed i.e. when we use Transactional or Global rules, one can simply use Create task or Create appointment feature available in workflow action.
Workflow action
For more information on this refer our previous blog link below where we shared the information on creating a tasks through workflow with defined due period
Creating tasks through workflow with defined due period
About Us
Greytrix is one stop solution provider for Sage ERP and Sage CRM needs. We provide complete end-to-end assistance for your technical consultations, product customizations, data migration, system integrations, third party add-on development and implementation expertise.
Greytrix has some unique integration solutions for Sage CRM with Sage ERP’s (Sage X3Sage 100Sage 500 and Sage 300). It also offers best-in-class Sage ERP customization and development services to Business Partners, End Users and Sage PSG worldwide. Greytrix helps in migrating to Sage CRM from ACTGoldmine and other CRM’s.
For more information on our integration solutions, please contact us at [email protected]. We will be glad to assist you.
Also Read:
1) New Feature in GUMU for Sage CRM – Sage 100 Integration – Quick Order Entry
2) New Features of GUMU for Sage CRM – Sage 100 Integration
3) Access Rights to create new Reports in Sage CRM
4) What’s New – Creating Grids in Sage CRM to display Sage ERP X3 Data on real time basis using GUMU Customizer – II