Closed dfields186 closed 4 years ago
This is a context menu right? https://docs.servicenow.com/bundle/newyork-platform-user-interface/page/use/using-forms/concept/c_FormContextMenu.html
I don't think these menus can be accessed using the REST API - but I'll investigate this for snow, a new ServiceNow library I'm working on.
Closing and handling in rbw/snow#12
In our company's implementation of servicenow, there are certain incident tickets which have these "form action buttons" which when you click on them, you are given a menu of various options or actions that you can select. Here's the element from such an action button:
Are these somehow accessible and scriptable using the PySnow APIs or some other API inside of Python?
There is a schema associated with this Action Menu - its called an ActionSchema - partial listing of the schema shown below:
{ "properties": { "action": { "type": "string", "active": true, "label": "Action", "help_text": "Select an action", "enum": [{ "label": "Request Escalation", "value": "RequestEscalation", "help_text": "Request an escalation - Transport tickets ONLY." }, { "label": "Ticket Contest", "value": "TicketContest", "help_text": "Contest a ticket - Transport tickets ONLY." }, { "label": "Request To Close", "value": "RequestToClose", "help_text": "Request ticket closure - Transport tickets ONLY." }] }, "action_code": { "type": "string", "active": true, "label": "Action code", "help_text": "Select an action code.", "dependent_field": "action", "enum": [{ "label": "Service still down", "value": "TKTE001", "help_text": "", "dependent_value": "RequestEscalation"
Any help is so much appreciated!!
Thanks in advance! David