This documentation is archived and is not being maintained.

TargetRelatedDynamic Class (CrmService)

Forefront
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 two entity instances.

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

ConstructorDescription
TargetRelatedDynamicInitializes a new instance of the TargetRelatedDynamic class.

Instance PropertyDescription
Entity1IdGets or sets the ID of the entity instance that is the target of the operation.
Entity1NameGets or sets the logical name of the entity that is used in the operation.
Entity2IdGets or sets the ID of the entity instance that is the target of the operation.
Entity2NameGets or sets the logical name of the entity that is used in the operation.

Remarks

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

The following table shows the possible values for Entity1Name and Entity2Name.

Entity1NameEntity2Name
invoicecontact
leadaccount
leadcontact
opportunityaccount
opportunitycompetitor
opportunitycontact
productcompetitor
productlead
quotecontact
salesliteraturecompetitor
salesliteratureproduct
salesordercontact

Requirements

Web Service: CrmService

See Also

Reference


© 2010 Microsoft Corporation. All rights reserved.


Show: