Toggle menu
862
3.8K
30.2K
279.1K
Catglobe Wiki
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

ActivityHistorySearch class

From Catglobe Wiki

ActivityHistorySearch



Search for activites by users.

Parent class

Inherits from object

Constructors

  • (int groupResourceId "Resource Id a group containing all users to fetch data for") - Create new default search parameters for communication history. Default is to find no kinds since forever
  • (Array of int userResourceIds "Resource Ids of users to fetch data for") - Create new default search parameters for communication history. Default is to find no kinds since forever

Methods

  • ActivityHistory Execute() - Find all the activities
  • Empty SetSearchStartPeriod(DateTime from "Date to start searching from, if empty since forever") - Set date to start searching from
  • (From object) string ToString() - The string representation of the object.

Properties

  • string ObjectTypeName { get; } - The name of the type of object.
  • bool SearchForBulkMails { get; set; } - Get/Set include bulkmails in the result
  • bool SearchForBulkSMS { get; set; } - Get/Set include bulk SMS in the result
  • bool SearchForCati { get; set; } - Get/Set include cati in the result
  • bool SearchForDialedCati { get; set; } - Get/Set include cati calls that the users initiated in the result
  • bool SearchForJournal { get; set; } - Get/Set include journal entries in the result
  • bool SearchForMails { get; set; } - Get/Set include non-bulkmails in the result
  • bool SearchForQuestionnaireActivity { get; set; } - Get/Set include questionnaire activit in the result
  • bool SearchForSMS { get; set; } - Get/Set include non-bulk SMS in the result
  • (From object) TypeInformation TypeInformation { get; } - Get information about this class.

Examples

//get mail, bulkmail history 
array userRid = {15210};
ActivityHistorySearch search = new ActivityHistorySearch(userRid);
search.SearchForMails = true;
search.SearchForBulkMails = true;
search.SearchForSMS = false;
search.SearchForBulkSMS = false;
search.SearchForCati = false;
search.SearchForDialedCati = false;
search.SearchForJournal = false;
search.SearchForQuestionnaireActivity = false;
DateTime dateFrom = new DateTime ("2016/1/30");
search.SetSearchStartPeriod(dateFrom);
ActivityHistory result = search.Execute();
result.OrderByDate();
for(number i = 0; i< result.Count; i++)
{
	result.SetCurrent(i);
	print(result.ParentResourcePath );
}