Platform API

<back to all web services

GetActivityFeed

Get activity feed related to the specified object.

Requires Authentication
The following routes are available for this service:
All Verbs/api/activityfeed/{ObjectId}
GetActivityFeed Parameters:
NameParameterData TypeRequiredDescription
ObjectIdpathGuidYesObject to get activity feed for.
ActivityFeedTypequeryList<Guid>NoUser, system or triggered.
IsPagedModequeryboolNoReturn all feeds matching criteria or paged results?
PageNumberqueryintNoReturn feeds matching criteria on the specified page number if paged mode.
PageSizequeryintNoNumber of feeds on each page if paged mode
GetActivityFeedResponse Parameters:
NameParameterData TypeRequiredDescription
ActivityFeedformList<ActivityFeedModel>No
TotalRecordsformintNo
ResponseStatusformResponseStatusNo
ActivityFeedModel Parameters:
NameParameterData TypeRequiredDescription
ObjectIdformGuidYesObject linked to the event.
ActionEventIdformGuidYesEvent Id
ObjectNameformstringNoName of the object linked to the event.
ActionDescriptionformstringNoEvent description
OccurredDateformDateTimeYesDate of occurence of the event.
AuditLevelIdformGuidNoUser, system or triggered
AuditLevelNameformstringNoUser, system or triggered

To override the Content-type in your clients, use the HTTP Accept Header, append the .json suffix or ?format=json

To embed the response in a jsonp callback, append ?callback=myCallback

HTTP + JSON

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST /api/activityfeed/{ObjectId} HTTP/1.1 
Host: pfapi.pstpf.com.au 
Accept: application/json
Content-Type: application/json
Content-Length: length

{"ObjectId":"00000000-0000-0000-0000-000000000000","ActivityFeedType":["00000000-0000-0000-0000-000000000000"],"IsPagedMode":false,"PageNumber":0,"PageSize":0}
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length

{"ActivityFeed":[{"ObjectId":"00000000-0000-0000-0000-000000000000","ActionEventId":"00000000-0000-0000-0000-000000000000","ObjectName":"String","ActionDescription":"String","OccurredDate":"0001-01-01T00:00:00.0000000","AuditLevelId":"00000000-0000-0000-0000-000000000000","AuditLevelName":"String"}],"TotalRecords":0,"ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String","Meta":{"String":"String"}}],"Meta":{"String":"String"}}}