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

Add new entry - Incident Custom Field Menu

Received Response
14
Views
1
Comments
edited Aug 1, 2018 7:51AM in Integrations and APIs 1 comment

Content

Hi All

 

Is it possible to add a new item to an Incident Custom Field Menu ?  I don't mean update an incident field, I need to add a new entry (if its not there already) to a custom menu field via connect PHP.

I have got the attached code block but I think this is to update the incident field rather than add a new menu item.

Cheers

Ian

 

Version

18B

Code Snippet

             $incident = RNCPHP\Incident::fetch(37958);

$incident->CustomFields->c->action = new RNCPHP\NamedIDLabel();
$incident->CustomFields->c->test_menu->LookupName = "Label_1";
$incident->CustomFields->c->test_menu->ID = 26; 
        

Howdy, Stranger!

Log In

To view full details, sign in.

Register

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