You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

Creating a Task from an incident and copying values

Received Response
12
Views
2
Comments
edited Aug 6, 2018 2:39PM in Integrations and APIs 2 comments

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

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!