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

RNCPHP\MessageBase for custom messagebase record works only in development

Accepted answer
15
Views
21
Comments
edited May 10, 2017 12:45PM in Customer Portal 21 comments

Content

This line works perfectly fine in development mode:
RNCPHP\MessageBase::fetch("CUSTOM_MSG_POPUP_TITLE_64")->Value;
The code is in the getData() function of the controller.php of a widget.


In staging and production we get this error:
Fatal error: Uncaught exception 'RightNow\Connect\v1_3\ConnectAPIError' with message 'Invalid ID: No MessageBase record found with LookupName = '(1000288)'' in /cgi-bin/<site>.cfg/scripts/cp/generated/staging/staging_01/optimized/views/headers/ajax.php:19

Any ideas?

 

Version

CP 3.5.2, Service Cloud Nov'16

Howdy, Stranger!

Log In

To view full details, sign in.

Register

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