Return the entire list of departments for the Company

Parameters

ParameterTypeRequiredNotes
None

Example Query

POST https://api.workschedule.net/WS.exe?Module=API&SessionID=123&SP=12345678&Method=getDepts

Sample JSON Input

  None  

JSON Response

  {
 "ErrorMessage": "Success",
 "ItemResponses": [],
 "Items": [
  {
   "SortValue": "0000000013",
   "Notes": "k;,glf;gfdgfgd",
   "Active": "False",
   "CatItemID": "1",
   "ShowEmployee": "False",
   "Name": "Supercalifragilistickjadhfkladfh",
   "Color": "339966",
   "CatNo": "1"
  },{
   "SortValue": "0000000004",
   "Active": "False",
   "CatItemID": "2",
   "ShowEmployee": "False",
   "Name": "LS",
   "Color": "99CCFF",
   "CatNo": "1"
  },{
   "SortValue": "0000000010",
   "Active": "False",
   "CatItemID": "3",
   "ShowEmployee": "False",
   "Name": "Hillview",
   "Color": "FF9900",
   "CatNo": "1"
  },{
   "SortValue": "0000000014",
   "Active": "False",
   "CatItemID": "30",
   "ShowEmployee": "False",
   "Name": "43435",
   "CatNo": "1"
  }],
  "ErrorCode": "0"
}  

XML Response

 <WSDN>
  <ErrorMessage>Success</ErrorMessage>
  <Items>
	<ArrayItem>
	  <SortValue>0000000013</SortValue>
	  <Notes>k;,glf;gfdgfgd</Notes>
	  <Active>False</Active>
	  <CatItemID>1</CatItemID>
	  <ShowEmployee>False</ShowEmployee>
	  <Name>Supercalifragilistickjadhfkladfh</Name>
	  <Color>339966</Color>
	  <CatNo>1</CatNo>
	</ArrayItem>
	<ArrayItem>
	  <SortValue>0000000004</SortValue>
	  <Active>False</Active>
	  <CatItemID>2</CatItemID>
	  <ShowEmployee>False</ShowEmployee>
	  <Name>LS</Name>
	  <Color>99CCFF</Color>
	  <CatNo>1</CatNo>
	</ArrayItem>
	<ArrayItem>
	  <SortValue>0000000010</SortValue>
	  <Active>False</Active>
	  <CatItemID>3</CatItemID>
	  <ShowEmployee>False</ShowEmployee>
	  <Name>Hillview</Name>
	  <Color>FF9900</Color>
	  <CatNo>1</CatNo>
	</ArrayItem>
	<ArrayItem>
	  <SortValue>0000000014</SortValue>
	  <Active>False</Active>
	  <CatItemID>30</CatItemID>
	  <ShowEmployee>False</ShowEmployee>
	  <Name>43435</Name>
	  <CatNo>1</CatNo>
	</ArrayItem>
  </Items>
  <ErrorCode>0</ErrorCode>
</WSDN> 

Resource Information

Response Format JSON/XML
Request Type POST