CPM Error:"creating default object from empty value"
Summary:
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 (incidents.co$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):
<?php /* * 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
Tagged:
0