Departments by ContactID '/contacts/{contactid}/departments'

Departments are only associated with non-individual contacts.

The method available for Departments is exposed under '/contacts/{contactid}/departments'

Departments by ContactID Fetch

Method Type: GET

returns a list of  departments for a specific non-individual contact record



Departments By ContactID Fetch

 The URI '/contacts/{contactid}/notes', when coupled with Method Type 'GET',  returns a List of Departments associated with a specific Contact Record. A good Business Contact record to test with is ABC Company. The URI is as follows.{ContactID}/departments

Below is a sample request in C# using our URI, sample credentials, and the method type. The content type "text/json" work equally well.

HttpWebRequest req = (HttpWebRequest)HttpWebRequest.Create("");
req.Headers[System.Net.HttpRequestHeader.Authorization] = "Basic " + Convert.ToBase64String(System.Text.Encoding.Default.GetBytes("6C135EDF-C37C-4039-AEF3-5DFC079F9E6A:Statementone:sonedemo"));
req.Method = "GET";
req.ContentType = "text/xml";

//and here's the response stream.
HttpWebResponse resp = (HttpWebResponse)req.GetResponse();
System.IO.StreamReader sr = new System.IO.StreamReader(resp.GetResponseStream());


The following is a condensed XML response. The XML response will include up to 50 notes per page and provide a total count of the related note records.

Was this article helpful?
0 out of 0 found this helpful
Have more questions? Submit a request


Powered by Zendesk