Department is a dimension that can be defined by the company and set on transactions to expand report functionality and insight.


List Departments

readByQuery

<readByQuery>
    <object>DEPARTMENT</object>
    <fields>*</fields>
    <query></query>
    <pagesize>100</pagesize>
</readByQuery>

Parameters

Name Required Type Description
object Required string Use DEPARTMENT
fields Required string Comma separated list of fields on the object to list. Use * to return all fields.
query Required string SQL-like query based on fields on the object. Illegal XML characters must be properly encoded. The following SQL operators are supported: <, >, >=, <=, =, like, not like, in, not in. When doing NULL comparisons: IS NOT NULL, IS NULL. Multiple fields may be matched using the AND and OR operators. Joins are not supported. Single quotes in any operands must be escaped with a backslash - For example, the value Erik's Deli would become 'Erik\'s Deli'.
pagesize Optional integer Set a custom page size between 1 and 1000 items (Default: 100)

query

Name Required Type Description
STATUS Optional string Status. Use T for Active and F for Inactive.

Get Department

read

<read>
    <object>DEPARTMENT</object>
    <keys>1</keys>
    <fields>*</fields>
</read>

Parameters

Name Required Type Description
object Required string Use DEPARTMENT
keys Required string The department RECORDNO to get
fields Required string Comma separated list of fields on the object to get. Use * to return all fields.

Get Department by Name

readByName

<readByName>
    <object>DEPARTMENT</object>
    <keys>9ADMIN</keys>
    <fields>*</fields>
</readByName>

Parameters

Name Required Type Description
object Required string Use DEPARTMENT
keys Required string The department DEPARTMENTID to get
fields Required string Comma separated list of fields on the object to get. Use * to return all fields.

Create Department

create

<create>
    <DEPARTMENT>
        <DEPARTMENTID>FIN</DEPARTMENTID>
        <TITLE>Finance</TITLE>
        <PARENTID></PARENTID>
        <SUPERVISORID></SUPERVISORID>
        <CUSTTITLE></CUSTTITLE>
        <STATUS>active</STATUS>
    </DEPARTMENT>
</create>

Parameters

Name Required Type Description
DEPARTMENT Optional object The object to create

DEPARTMENT

Name Required Type Description
DEPARTMENTID Required string The department ID to create
TITLE Required string Department name
PARENTID Optional string Parent department ID
SUPERVISORID Optional string Manager employee ID
CUSTTITLE Optional string Department title for reporting
STATUS Optional string Department status. Use active for Active otherwise use inactive for Inactive (Default: active)

Update Department

update

<update>
    <DEPARTMENT>
        <RECORDNO>212</RECORDNO>
        <TITLE>Finance</TITLE>
        <PARENTID></PARENTID>
        <SUPERVISORID></SUPERVISORID>
        <CUSTTITLE></CUSTTITLE>
        <STATUS>active</STATUS>
    </DEPARTMENT>
</update>

Parameters

Name Required Type Description
DEPARTMENT Optional object The object to update

DEPARTMENT

Name Required Type Description
RECORDNO Required integer Record number of department
TITLE Optional string Department name
PARENTID Optional string Parent department ID
SUPERVISORID Optional string Manager employee ID
CUSTTITLE Optional string Department title for reporting
STATUS Optional string Department status. Use active for Active otherwise use inactive for Inactive (Default: active)

Delete Department

delete

<delete>
    <object>DEPARTMENT</object>
    <keys>112</keys>
</delete>

Parameters

Name Required Type Description
object Required string Use DEPARTMENT
keys Required string The department RECORDNO to delete

Provide feedback