Condividi tramite


CrmServiceClient.GetEntityDataByLinkedSearch Method

Definition

Overloads

GetEntityDataByLinkedSearch(String, Dictionary<String,String>, String, Dictionary<String,String>, String, String, String, CrmServiceClient+LogicalSearchOperator, List<String>, Guid)

Queries an Object via a M to M Link

GetEntityDataByLinkedSearch(String, List<CrmServiceClient.CrmSearchFilter>, String, List<CrmServiceClient.CrmSearchFilter>, String, String, String, CrmServiceClient+LogicalSearchOperator, List<String>, Guid, Boolean)

Queries an Object via a M to M Link

GetEntityDataByLinkedSearch(String, Dictionary<String,String>, String, Dictionary<String,String>, String, String, String, CrmServiceClient+LogicalSearchOperator, List<String>, Guid)

Queries an Object via a M to M Link

public System.Collections.Generic.Dictionary<string,System.Collections.Generic.Dictionary<string,object>> GetEntityDataByLinkedSearch (string returnEntityName, System.Collections.Generic.Dictionary<string,string> primarySearchParameters, string linkedEntityName, System.Collections.Generic.Dictionary<string,string> linkedSearchParameters, string linkedEntityLinkAttribName, string m2MEntityName, string returnEntityPrimaryId, Microsoft.Xrm.Tooling.Connector.CrmServiceClient.LogicalSearchOperator searchOperator, System.Collections.Generic.List<string> fieldList, Guid batchId = default);
member this.GetEntityDataByLinkedSearch : string * System.Collections.Generic.Dictionary<string, string> * string * System.Collections.Generic.Dictionary<string, string> * string * string * string * Microsoft.Xrm.Tooling.Connector.CrmServiceClient.LogicalSearchOperator * System.Collections.Generic.List<string> * Guid -> System.Collections.Generic.Dictionary<string, System.Collections.Generic.Dictionary<string, obj>>
Public Function GetEntityDataByLinkedSearch (returnEntityName As String, primarySearchParameters As Dictionary(Of String, String), linkedEntityName As String, linkedSearchParameters As Dictionary(Of String, String), linkedEntityLinkAttribName As String, m2MEntityName As String, returnEntityPrimaryId As String, searchOperator As CrmServiceClient.LogicalSearchOperator, fieldList As List(Of String), Optional batchId As Guid = Nothing) As Dictionary(Of String, Dictionary(Of String, Object))

Parameters

returnEntityName
String

Name of the entity you want return data from

primarySearchParameters
Dictionary<String,String>

Search Prams for the Return Entity

linkedEntityName
String

Name of the entity you are linking too

linkedSearchParameters
Dictionary<String,String>

Search Prams for the Entity you are linking too

linkedEntityLinkAttribName
String

Key field on the Entity you are linking too

m2MEntityName
String

CRM Name of the Relationship

returnEntityPrimaryId
String

Key field on the Entity you want to return data from

searchOperator
CrmServiceClient.LogicalSearchOperator

Search Operator to apply

fieldList
List<String>

List of Fields from the Returned Entity you want

batchId
Guid

Optional: if set to a valid GUID, generated by the Create Batch Request Method, will assigned the request to the batch for later execution, on fail, runs the request immediately

Returns

Applies to

GetEntityDataByLinkedSearch(String, List<CrmServiceClient.CrmSearchFilter>, String, List<CrmServiceClient.CrmSearchFilter>, String, String, String, CrmServiceClient+LogicalSearchOperator, List<String>, Guid, Boolean)

Queries an Object via a M to M Link

public System.Collections.Generic.Dictionary<string,System.Collections.Generic.Dictionary<string,object>> GetEntityDataByLinkedSearch (string returnEntityName, System.Collections.Generic.List<Microsoft.Xrm.Tooling.Connector.CrmServiceClient.CrmSearchFilter> primarySearchParameters, string linkedEntityName, System.Collections.Generic.List<Microsoft.Xrm.Tooling.Connector.CrmServiceClient.CrmSearchFilter> linkedSearchParameters, string linkedEntityLinkAttribName, string m2MEntityName, string returnEntityPrimaryId, Microsoft.Xrm.Tooling.Connector.CrmServiceClient.LogicalSearchOperator searchOperator, System.Collections.Generic.List<string> fieldList, Guid batchId = default, bool isReflexiveRelationship = false);
member this.GetEntityDataByLinkedSearch : string * System.Collections.Generic.List<Microsoft.Xrm.Tooling.Connector.CrmServiceClient.CrmSearchFilter> * string * System.Collections.Generic.List<Microsoft.Xrm.Tooling.Connector.CrmServiceClient.CrmSearchFilter> * string * string * string * Microsoft.Xrm.Tooling.Connector.CrmServiceClient.LogicalSearchOperator * System.Collections.Generic.List<string> * Guid * bool -> System.Collections.Generic.Dictionary<string, System.Collections.Generic.Dictionary<string, obj>>
Public Function GetEntityDataByLinkedSearch (returnEntityName As String, primarySearchParameters As List(Of CrmServiceClient.CrmSearchFilter), linkedEntityName As String, linkedSearchParameters As List(Of CrmServiceClient.CrmSearchFilter), linkedEntityLinkAttribName As String, m2MEntityName As String, returnEntityPrimaryId As String, searchOperator As CrmServiceClient.LogicalSearchOperator, fieldList As List(Of String), Optional batchId As Guid = Nothing, Optional isReflexiveRelationship As Boolean = false) As Dictionary(Of String, Dictionary(Of String, Object))

Parameters

returnEntityName
String

Name of the entity you want return data from

primarySearchParameters
List<CrmServiceClient.CrmSearchFilter>

Search Prams for the Return Entity

linkedEntityName
String

Name of the entity you are linking too

linkedSearchParameters
List<CrmServiceClient.CrmSearchFilter>

Search Prams for the Entity you are linking too

linkedEntityLinkAttribName
String

Key field on the Entity you are linking too

m2MEntityName
String

CRM Name of the Relationship

returnEntityPrimaryId
String

Key field on the Entity you want to return data from

searchOperator
CrmServiceClient.LogicalSearchOperator

Search Operator to apply

fieldList
List<String>

List of Fields from the Returned Entity you want

batchId
Guid

Optional: if set to a valid GUID, generated by the Create Batch Request Method, will assigned the request to the batch for later execution, on fail, runs the request immediately

isReflexiveRelationship
Boolean

If the relationship is defined as Entity:Entity or Account N:N Account, this parameter should be set to true

Returns

Applies to