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.ActivitiesAssembly: CMS.Activities (in CMS.Activities.dll) Version: 13.0.131
Syntax 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:
ActivityInfoRemarks
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