Share via


CrmServiceClient.GetActivitiesBy Method

Definition

Overloads

GetActivitiesBy(String, Guid, List<String>, CrmServiceClient+LogicalSearchOperator, List<CrmServiceClient.CrmSearchFilter>, Dictionary<String,CrmServiceClient.LogicalSortOrder>, Int32, Int32, String, String, Boolean, Guid)

Returns all Activities Related to a given Entity ID. Only Account, Contact and Opportunity entities are supported.

GetActivitiesBy(String, Guid, List<String>, CrmServiceClient+LogicalSearchOperator, Dictionary<String,String>, Dictionary<String,CrmServiceClient.LogicalSortOrder>, Int32, Int32, String, String, Boolean, Guid)

Returns all Activities Related to a given Entity ID. Only Account, Contact and Opportunity entities are supported.

GetActivitiesBy(String, Guid, List<String>, CrmServiceClient+LogicalSearchOperator, List<CrmServiceClient.CrmSearchFilter>, Dictionary<String,CrmServiceClient.LogicalSortOrder>, Int32, Int32, String, String, Boolean, Guid)

Returns all Activities Related to a given Entity ID. Only Account, Contact and Opportunity entities are supported.

public System.Collections.Generic.Dictionary<string,System.Collections.Generic.Dictionary<string,object>> GetActivitiesBy (string searchEntity, Guid entityId, System.Collections.Generic.List<string> fieldList, Microsoft.Xrm.Tooling.Connector.CrmServiceClient.LogicalSearchOperator searchOperator, System.Collections.Generic.List<Microsoft.Xrm.Tooling.Connector.CrmServiceClient.CrmSearchFilter> searchParameters, System.Collections.Generic.Dictionary<string,Microsoft.Xrm.Tooling.Connector.CrmServiceClient.LogicalSortOrder> sortParameters, int pageCount, int pageNumber, string pageCookie, out string outPageCookie, out bool isMoreRecords, Guid batchId = default);
member this.GetActivitiesBy : string * Guid * System.Collections.Generic.List<string> * Microsoft.Xrm.Tooling.Connector.CrmServiceClient.LogicalSearchOperator * System.Collections.Generic.List<Microsoft.Xrm.Tooling.Connector.CrmServiceClient.CrmSearchFilter> * System.Collections.Generic.Dictionary<string, Microsoft.Xrm.Tooling.Connector.CrmServiceClient.LogicalSortOrder> * int * int * string * string * bool * Guid -> System.Collections.Generic.Dictionary<string, System.Collections.Generic.Dictionary<string, obj>>
Public Function GetActivitiesBy (searchEntity As String, entityId As Guid, fieldList As List(Of String), searchOperator As CrmServiceClient.LogicalSearchOperator, searchParameters As List(Of CrmServiceClient.CrmSearchFilter), sortParameters As Dictionary(Of String, CrmServiceClient.LogicalSortOrder), pageCount As Integer, pageNumber As Integer, pageCookie As String, ByRef outPageCookie As String, ByRef isMoreRecords As Boolean, Optional batchId As Guid = Nothing) As Dictionary(Of String, Dictionary(Of String, Object))

Parameters

searchEntity
String

Type of Entity to search against

entityId
Guid

ID of the entity to search against.

fieldList
List<String>

List of Field to return for the entity , null indicates all fields.

searchOperator
CrmServiceClient.LogicalSearchOperator

Search Operator to use

searchParameters
List<CrmServiceClient.CrmSearchFilter>

Filters responses based on search prams.

pageCount
Int32

Number of Pages

pageNumber
Int32

Current Page number

pageCookie
String

inbound place holder cookie

outPageCookie
String

outbound place holder cookie

isMoreRecords
Boolean

is there more records or not

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

Array of Activities

Applies to

GetActivitiesBy(String, Guid, List<String>, CrmServiceClient+LogicalSearchOperator, Dictionary<String,String>, Dictionary<String,CrmServiceClient.LogicalSortOrder>, Int32, Int32, String, String, Boolean, Guid)

Returns all Activities Related to a given Entity ID. Only Account, Contact and Opportunity entities are supported.

public System.Collections.Generic.Dictionary<string,System.Collections.Generic.Dictionary<string,object>> GetActivitiesBy (string searchEntity, Guid entityId, System.Collections.Generic.List<string> fieldList, Microsoft.Xrm.Tooling.Connector.CrmServiceClient.LogicalSearchOperator searchOperator, System.Collections.Generic.Dictionary<string,string> searchParameters, System.Collections.Generic.Dictionary<string,Microsoft.Xrm.Tooling.Connector.CrmServiceClient.LogicalSortOrder> sortParameters, int pageCount, int pageNumber, string pageCookie, out string outPageCookie, out bool isMoreRecords, Guid batchId = default);
member this.GetActivitiesBy : string * Guid * System.Collections.Generic.List<string> * Microsoft.Xrm.Tooling.Connector.CrmServiceClient.LogicalSearchOperator * System.Collections.Generic.Dictionary<string, string> * System.Collections.Generic.Dictionary<string, Microsoft.Xrm.Tooling.Connector.CrmServiceClient.LogicalSortOrder> * int * int * string * string * bool * Guid -> System.Collections.Generic.Dictionary<string, System.Collections.Generic.Dictionary<string, obj>>
Public Function GetActivitiesBy (searchEntity As String, entityId As Guid, fieldList As List(Of String), searchOperator As CrmServiceClient.LogicalSearchOperator, searchParameters As Dictionary(Of String, String), sortParameters As Dictionary(Of String, CrmServiceClient.LogicalSortOrder), pageCount As Integer, pageNumber As Integer, pageCookie As String, ByRef outPageCookie As String, ByRef isMoreRecords As Boolean, Optional batchId As Guid = Nothing) As Dictionary(Of String, Dictionary(Of String, Object))

Parameters

searchEntity
String

Type of Entity to search against

entityId
Guid

ID of the entity to search against.

fieldList
List<String>

List of Field to return for the entity , null indicates all fields.

searchOperator
CrmServiceClient.LogicalSearchOperator

Search Operator to use

searchParameters
Dictionary<String,String>

Filters responses based on search prams.

pageCount
Int32

Number of Pages

pageNumber
Int32

Current Page number

pageCookie
String

inbound place holder cookie

outPageCookie
String

outbound place holder cookie

isMoreRecords
Boolean

is there more records or not

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

Array of Activities

Applies to