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

Setting MenuOnlyObject Value in Connect PHP

Received Response
8
Views
11
Comments
edited Apr 4, 2018 8:25PM in Integrations and APIs 11 comments

Content

Hi, I am trying to set a Mane filed value from connect php. The object is a custom object in which a menu field is being used.

The record is being created correctly but value is not being set in the menu field. I am using following code:

function AddNotesObj($newIncidentId, $Note, $NoteType, $Private)
{
try
{
$s_Notes = new RNCPHP\Halton\S_Notes();
 
$s_Notes->Incident = RNCPHP\Incident::fetch($newIncidentId);
$s_Notes->Note = $Note;
$s_Notes->S_NotesType = new RNCPHP\NamedIDOptList();
$s_Notes->S_NotesType->Name = 'Note';
$s_Notes->Private = $Private;
 
$s_Notes->save();
}
catch (Exception $err )
{
echo $err->getMessage();

Howdy, Stranger!

Log In

To view full details, sign in.

Register

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