Click or drag to resize
ActivityInfoProviderGetContactsEdgeActivity Method
Returns TOP 1 from the contact's activities ordered by ActivityCreated. ActivityType filter may be specified by setting value of activityType.

Namespace: CMS.Activities
Assembly: CMS.Activities (in CMS.Activities.dll) Version: 13.0.131
Syntax
C#
protected virtual ActivityInfo GetContactsEdgeActivity(
	int contactId,
	string activityType,
	OrderDirection orderBy
)

Parameters

contactId
Type: SystemInt32
Contact ID
activityType
Type: SystemString
Activity type - optional
orderBy
Type: CMS.DataEngineOrderDirection
Order by

Return Value

Type: ActivityInfo
Remarks
Use Ascending to obtain first contact's activity or Descending to obtain last contact's activity.
Remarks
If activityType is set to null/empty, returns first/last activity among all activities
See Also