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

CPM Error:"creating default object from empty value"

Accepted answer
edited Nov 1, 2021 10:41AM in General Technical Discussions 19 comments


I'm having problems with a remarkably simple CPM. The CPM should look at the value of a custom field (address1), and copy that value into a custom object field ($email_notification_1). The CPM throws an error, despite my "echo" showing that the custom object field has been set to the value of the custom field.

Content (required):

Version (include the version you are using, if applicable):

Code Snippet (add any code snippets that support your topic, if applicable):

 * CPMObjectEventHandler: set_decimal_fields_CPM
* Package: RN
* Objects: Incident
* Actions: Update
* Version: 1.2
* Author: Neil M
* Purpose: Copies values of two text fields into two decimal fields
* Last Updated: 2021-10-29 1500hrs
* Update Reason: CPM creation

// This object procedure binds to v1_2 of the Connect PHP API
use \RightNow\Connect\v1_2 as RNCPHP;

// This object procedure binds to the v1 interface of the process designer
use \RightNow\CPM\v1 as RNCPM;

 * An Object Event Handler must provide two classes:
 * - One with the same name as the CPMObjectEventHandler tag
 * above that implements the ObjectEventHandler interface.
 * - And one of the same name with a "_TestHarness" suffix
 * that implements the

Howdy, Stranger!

Log In

To view full details, sign in.


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