Creating a Task from an incident and copying values
Content
Hi,
I'm trying to create a CPM myself for the first time, and I'm running into difficulties.
My end-goal is to trigger the CPM from our incident Business Rules. The CPM should then create a task, and link it back to the incident. I'd then like to copy certain field values from the incident.
As a starting point, I've attempted to use the sample code from the documentation, but I'm still missing something.
Here is the full code from the CPM File:
<?php
/*
* CPMObjectEventHandler: Create_SMS_Task_CPM
* Package: RN
* Objects: Incident, Contact, Task
* Actions: Create,Update
* Version: 1.2
* Purpose: Create SMS Task when on saving incident
0