This documentation is archived and is not being maintained.

TargetRelatedOpportunityToContact Class (CrmService)

banner art

[Applies to: Microsoft Dynamics CRM 4.0]

Find the latest SDK documentation: CRM 2015 SDK

Contains the data needed for executing SetRelated and RemoveRelated to add or remove a relationship between contact and opportunity entity instances.

The TargetRelatedOpportunityToContact class inherits from TargetRelated. It exposes the following members.

TargetRelatedOpportunityToContactInitializes a new instance of the TargetRelatedOpportunityToContact class.

Instance PropertyDescription
ContactIdGets or sets the ID of the contact entity instance that is the target of the operation.
OpportunityIdGets or sets the ID of the opportunity entity instance that is the target of the operation.


Pass an instance of this class as the Target parameter in the appropriate Request class.


Web Service: CrmService

See Also


© 2010 Microsoft Corporation. All rights reserved.