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

Get Custom Object Menu FIeld Value/Label in addin

Accepted answer
40
Views
4
Comments
edited Dec 14, 2015 7:43AM in UI Extensibility 4 comments

Content

Hi All,

I am trying to get custom object menu field label/value but i am getting only ID of that particular menu field.

Here is my sample code for retrieving custom object menu field ID's:

   sampleObj = (IGenericObject)recordcontextObj.GetWorkspaceRecord("CO$Sample");

    IList<IGenericField> samplegf = sampleObj .GenericFields;

        foreach (IGenericField gf in samplegf )

{

if (gf.Name == "Account_Number")
                            {

string label=Convert.ToString(gf.DataValue.Value)

}

}

Can Anyone help me in getting Value/Label of the custom object menu field.Thanks in advance.

Thanks

Ganesh Kumar

 

Version

August 2015

Howdy, Stranger!

Log In

To view full details, sign in.

Register

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