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

Custom object in the contact workspace

Accepted answer
6
Views
9
Comments
edited Feb 8, 2018 2:52PM in Integrations and APIs 9 comments

Content

I want to access custom object field in my add-in code. We have space constraint so we create custom object field "ReasonCode" 
in the ContactDetails custom object under package Comms. I tried to access something like this.

Line 1 : IGenericObject customObjectContact = (IGenericObject)_recordContext.GetWorkspaceRecord("Comms$ContactDetails");
Line 2  : IList<IGenericField> IlistGenericCustomObject = customObjectContact.GenericFields;

I am getting null value  in the Line 1.

Howdy, Stranger!

Log In

To view full details, sign in.

Register

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