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

Getting the values for a Menu Custom Field

Accepted answer
25
Views
2
Comments
edited Jul 16, 2018 7:40PM in Integrations and APIs 2 comments

Content

I have a menu-type custom field in an incident and given the name of the field and an ID I need to get the string menu value (via a desktop add-in).

For example:
Name: CustomMenu
Menu Items:
Default (ID: 40)
Alternate (ID: 41)
Given the name, CustomMenu, and an ID of 41, I want to retrieve the name "Alternate".

I am able to retrieve a partial version of the custom field. I use _globalContext.GetOptlist((int)RightNow.AddIns.Common.OptListID.CustomFields) to retrieve a list of the custom fields, find the one with the correct name (say CustomMenu), and then I can check if my given ID (say

Howdy, Stranger!

Log In

To view full details, sign in.

Register

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