Documentation Center

Load compcode list

This API retrieves the list of company codes available to which users can be assigned, and is used by administrators.

Example API call

/servlets3/wietmsd?id=1459755986251&book=s1000d_bike_41&collection=default&uniqid=1459755984750&target=admin&action=get_compcode_list

Parameters

ParameterDescription
targetadmin
actionget_compcode_list
idA session ID that is valid for this collection and publication combination.
book The name of the publication, such as s1000d_bike_41.
collectionThe name of the collection that the publication is registered in, such as default.
uniquidTo prevent browser-side caching of data, especially with AJAX requests, it is important to make a URL unique. The most effective technique to accomplish this is to include a time parameter that is based on the time at which the call is made.

Returns

On success
<COMPCODES>
     <COMPCODEBODY>
          <COMPCODEITEM COMPCODE_ID=’id’>
			            <COMP_CODE>CODE</COMP_CODE>
		            	<COMP_NAME>NAME</COMP_NAME>
	        	</COMPCODEITEM>
	    </COMPCODEBODY>
</COMPCODES>
On failure
<COMPCODES></COMPCODES>