Share via


QueryExtensions.GetActivitiesBy Method

Definition

Overloads

GetActivitiesBy(ServiceClient, String, Guid, List<String>, LogicalSearchOperator, Dictionary<String,String>, Dictionary<String,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(ServiceClient, String, Guid, List<String>, LogicalSearchOperator, List<DataverseSearchFilter>, Dictionary<String,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(ServiceClient, String, Guid, List<String>, LogicalSearchOperator, Dictionary<String,String>, Dictionary<String,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 static System.Collections.Generic.Dictionary<string,System.Collections.Generic.Dictionary<string,object>> GetActivitiesBy (this Microsoft.PowerPlatform.Dataverse.Client.ServiceClient serviceClient, string searchEntity, Guid entityId, System.Collections.Generic.List<string> fieldList, Microsoft.PowerPlatform.Dataverse.Client.Extensions.LogicalSearchOperator searchOperator, System.Collections.Generic.Dictionary<string,string> searchParameters, System.Collections.Generic.Dictionary<string,Microsoft.PowerPlatform.Dataverse.Client.Extensions.LogicalSortOrder> sortParameters, int pageCount, int pageNumber, string pageCookie, out string outPageCookie, out bool isMoreRecords, Guid batchId = default);
static member GetActivitiesBy : Microsoft.PowerPlatform.Dataverse.Client.ServiceClient * string * Guid * System.Collections.Generic.List<string> * Microsoft.PowerPlatform.Dataverse.Client.Extensions.LogicalSearchOperator * System.Collections.Generic.Dictionary<string, string> * System.Collections.Generic.Dictionary<string, Microsoft.PowerPlatform.Dataverse.Client.Extensions.LogicalSortOrder> * int * int * string * string * bool * Guid -> System.Collections.Generic.Dictionary<string, System.Collections.Generic.Dictionary<string, obj>>
<Extension()>
Public Function GetActivitiesBy (serviceClient As ServiceClient, searchEntity As String, entityId As Guid, fieldList As List(Of String), searchOperator As LogicalSearchOperator, searchParameters As Dictionary(Of String, String), sortParameters As Dictionary(Of String, 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

serviceClient
ServiceClient

ServiceClient

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
LogicalSearchOperator

Search Operator to use

searchParameters
Dictionary<String,String>

Filters responses based on search prams.

sortParameters
Dictionary<String,LogicalSortOrder>

Sort order

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(ServiceClient, String, Guid, List<String>, LogicalSearchOperator, List<DataverseSearchFilter>, Dictionary<String,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 static System.Collections.Generic.Dictionary<string,System.Collections.Generic.Dictionary<string,object>> GetActivitiesBy (this Microsoft.PowerPlatform.Dataverse.Client.ServiceClient serviceClient, string searchEntity, Guid entityId, System.Collections.Generic.List<string> fieldList, Microsoft.PowerPlatform.Dataverse.Client.Extensions.LogicalSearchOperator searchOperator, System.Collections.Generic.List<Microsoft.PowerPlatform.Dataverse.Client.Extensions.DataverseSearchFilter> searchParameters, System.Collections.Generic.Dictionary<string,Microsoft.PowerPlatform.Dataverse.Client.Extensions.LogicalSortOrder> sortParameters, int pageCount, int pageNumber, string pageCookie, out string outPageCookie, out bool isMoreRecords, Guid batchId = default);
static member GetActivitiesBy : Microsoft.PowerPlatform.Dataverse.Client.ServiceClient * string * Guid * System.Collections.Generic.List<string> * Microsoft.PowerPlatform.Dataverse.Client.Extensions.LogicalSearchOperator * System.Collections.Generic.List<Microsoft.PowerPlatform.Dataverse.Client.Extensions.DataverseSearchFilter> * System.Collections.Generic.Dictionary<string, Microsoft.PowerPlatform.Dataverse.Client.Extensions.LogicalSortOrder> * int * int * string * string * bool * Guid -> System.Collections.Generic.Dictionary<string, System.Collections.Generic.Dictionary<string, obj>>
<Extension()>
Public Function GetActivitiesBy (serviceClient As ServiceClient, searchEntity As String, entityId As Guid, fieldList As List(Of String), searchOperator As LogicalSearchOperator, searchParameters As List(Of DataverseSearchFilter), sortParameters As Dictionary(Of String, 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

serviceClient
ServiceClient

ServiceClient

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
LogicalSearchOperator

Search Operator to use

searchParameters
List<DataverseSearchFilter>

Filters responses based on search prams.

sortParameters
Dictionary<String,LogicalSortOrder>

Sort order

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