• Share
    • Twitter
    • LinkedIn
    • Facebook
    • Email
  • Feedback
  • Edit
Show / Hide Table of Contents

GET Contact/{id}/Activities

Some tooltip text!
• 4 minutes to read
 • 4 minutes to read
GET /api/v1/Contact/{id}/Activities

OData list of Activities under a specific ContactEntity.

Can be sorted and further filtered using OData conventions:

  • Contact/1234/Activities?$select=col1,col2,abc/col3
  • Contact/1234/Activities?$filter=col1 eq 'foo' and startswith(col2, 'baz')
  • Contact/1234/Activities?$orderby=abc/col3,col1
  • Contact/1234/Activities?$top=1000
  • Contact/1234/Activities?$mode=full

OData returns XML or JSON carriers depending on the HTTP Accept header.

Calls the Archive service using the "ContactActivity" archive provider.

Filter Operators:

ints: eq =, ne, le, lt, gt, ge, set, equals, greater, less, unequals, between

strings: contains, is, notBegins, notContains, isNot

associate: associateIsOneOf, associateIsNotOneOf,

list ids: oneOf, NotOneOf,

dates: before, date, after, dateBetween, beforeToday

Unary ops: currentAssociate, beforeToday, today, afterToday, lastWeek, thisWeek, nextWeek, lastMonth, thisMonth, nextMonth, lastQuarter, thisQuarter, nextQuarter, thisHalf, thisYear

Funcs: substringof(a,b), startswith(a,b), endswith(a,b), this(f,period), next(f,n,period), previous(f,n,period), thisAndNext(f,n,period), thisAndPrevious(f,n,period), thisAndPreviousAndNext(f,period)

Path Part Type Description
id int32 The entity id Required

Query String Parameters

Parameter Name Type Description
$select string Comma separated list of column names to return. "nameDepartment,fullname,category". Can also use aggregation functions and modifiers: "Count(category):Footer"
$filter string Expression to restrict the results. e.g.: "name begins 'foo' and category gt 1"
$orderBy string Comma separated list of column names to sort by, with optional direction. "name asc,fullname,category desc"
$entities string Comma separated list of entity names to use. e.g: "contact, person"
$top int32 Number of rows to return in results
$skip int32 Number of rows from database to skip before returning results
$mode Enum: Slim, Wide, Full FULL (with raw values and hints for each value) or SLIM (just the display values)
$options string Provider specific options. e.g: "GrandTotal=true"
$context string Provider specific context parameter.
$format string Set XML or JSON output format; override the format determined from Accept header.
$jsonSafe bool Make output names into JSON safe property names. Replace all unsafe characters with _ underscore.
$output Enum: Logical, Display Return Logical or Display values in SLIM mode. Logical returns true/false for booleans, Display returns icon hints. Dates are always returned as ISO strings.
GET /api/v1/Contact/{id}/Activities?$select=name,department,category/id
GET /api/v1/Contact/{id}/Activities?$filter=name begins 'S'
GET /api/v1/Contact/{id}/Activities?$orderBy=name asc
GET /api/v1/Contact/{id}/Activities?$entities=veniam
GET /api/v1/Contact/{id}/Activities?$top=681
GET /api/v1/Contact/{id}/Activities?$skip=451
GET /api/v1/Contact/{id}/Activities?$mode=Full
GET /api/v1/Contact/{id}/Activities?$options=GrandTotal=true
GET /api/v1/Contact/{id}/Activities?$context=dolorem
GET /api/v1/Contact/{id}/Activities?$format=JSON
GET /api/v1/Contact/{id}/Activities?$jsonSafe=False
GET /api/v1/Contact/{id}/Activities?$output=Display

Request Headers

Parameter Name Description
Authorization Supports 'Basic', 'SoTicket' and 'Bearer' schemes, depending on installation type.
X-XSRF-TOKEN If not using Authorization header, you must provide XSRF value from cookie or hidden input field
Accept Content-type(s) you would like the response in: application/json, text/json, application/xml, text/xml, application/json-patch+json, application/merge-patch+json
Accept-Language Convert string references and multi-language values into a specified language (iso2) code.
SO-Language Convert string references and multi-language values into a specified language (iso2) code. Overrides Accept-Language value.
SO-Culture Number, date formatting in a specified culture (iso2 language) code. Partially overrides SO-Language/Accept-Language value. Ignored if no Language set.
SO-TimeZone Specify the timezone code that you would like date/time responses converted to.
SO-AppToken The application token that identifies the partner app. Used when calling Online WebAPI from a server.

Response:

OK

Response Description
200 OK
404 Not Found.

Response body: ODataSlimResponse

Property Name Type Description
odata.metadata string
odata.nextLink string
value array

Sample request

GET /api/v1/Contact/{id}/Activities
Authorization: Basic dGplMDpUamUw
Accept: application/json; charset=utf-8
Accept-Language: sv

Sample response

HTTP/1.1 200 OK
Content-Type: application/json; charset=utf-8

{
  "odata.metadata": "https://www.example.com/api/v1/archive$metadata",
  "odata.nextLink": "modi",
  "value": [
    {
      "PrimaryKey": 302,
      "EntityName": "person",
      "personId": 302,
      "fullName": "Jordyn Runolfsdottir DVM"
    },
    {
      "PrimaryKey": 2788,
      "EntityName": "person",
      "personId": 2788,
      "fullName": "Juvenal Daugherty"
    }
  ]
}
© SuperOffice. All rights reserved.
SuperOffice |  Community |  Release Notes |  Privacy |  Site feedback |  Search Docs |  About Docs |  Contribute |  Back to top