Click or drag to resize
ActivityInfoProviderGetContactActivities Method
Returns activities of specified type for contact.

Namespace: CMS.Activities
Assembly: CMS.Activities (in CMS.Activities.dll) Version: 13.0.131
Syntax
C#
public static ObjectQuery<ActivityInfo> GetContactActivities(
	int contactId,
	string activityType,
	string cancelActivityType,
	int lastXDays,
	string whereCondition
)

Parameters

contactId
Type: SystemInt32
Contact ID
activityType
Type: SystemString
Name of the activity to check (can specify more than one separated with semicolon, all of the types match than)
cancelActivityType
Type: SystemString
Name of the activity which cancels the original activity (for example UnsubscribeNewsletter is a canceling event for SubscribeNewsletter etc.)
lastXDays
Type: SystemInt32
Constraint for last X days (if zero or negative value is given, no constraint is applied)
whereCondition
Type: SystemString
Additional WHERE condition

Return Value

Type: ObjectQueryActivityInfo
See Also