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

Addin get Contact Custom Object from Opportunity

Received Response
4
Views
1
Comments
edited May 2, 2016 4:26PM in UI Extensibility 1 comment

Content

Hi,

I have an addin in my Opportunity Workspace, this opp has a contact and in the contact workspace i have a Custom Object "ExtraData", how can i get data of that custom object from my opportunity? I will appreciate any help.

Thanks.

Code Snippet

             IOpportunity optyRecord = _recordContext.GetWorkspaceRecord(RightNow.AddIns.Common.WorkspaceRecordType.Opportunity) as IOpportunity;

for (int i = 0; i < optyRecord.CustomAttributes.Count; i++)
            {
                if (optyRecord.CustomAttributes[i].PackageName.Equals("CO"))
                {
                    if (optyRecord.CustomAttributes[i].GenericField.Name.Equals("CO$ExtraData"))
       

Howdy, Stranger!

Log In

To view full details, sign in.

Register

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