Add new entry - Incident Custom Field Menu
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.
$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;