NEW!

Construction companies can create their own user-defined statuses for change requests. A change request status is mapped to a workflow type, which controls whether change request entries post to the primary project estimate. A workflow type of none (the default) prevents change request entries from posting. Other workflow types, such as pending change, approved change, and so forth, result in posting.

As an example, you might map a status named Not Issued to the workflow type of none, or a status named Approved Changes to the approved change workflow type.


Get Change Request Status Object Definition

lookup

List all the fields and relationships for the change request status object:

<lookup>
    <object>CHANGEREQUESTSTATUS</object>
</lookup>

Parameters

Name Required Type Description
object Required string Use CHANGEREQUESTSTATUS

List Change Request Statuses

query

List information for all change request statuses:

<query>
    <object>CHANGEREQUESTSTATUS</object>
    <select>
        <field>NAME</field>
        <field>WFTYPE</field>
        <field>RECORDNO</field>
    </select>
</query>

Parameters

Name Required Type Description
object Required string Use CHANGEREQUESTSTATUS
select Required sequence One or more field names and an optional aggregate function such as count or sum. Returning all fields is not supported.
filter Optional object Query filter expression. Check the value of a single field using operators such as equalto/like, or multiple fields using and/or. Query fields on related objects using the dot operator (for example, VENDOR.CREDITLIMIT on APBILL).
orderby Optional object Provide an order element with a field name and choose an ascending or descending sort order, for example:
<order>
        <field>RECORDNO</field>
        <descending/>
</order>
options Optional object Set the caseinsensitive element to true for a case-insensitive query:
    <caseinsensitive>true</caseinsensitive>
In a multi-entity company, set the showprivate element to true to query data in private entities:
   <showprivate>true</showprivate>
pagesize Optional integer Custom page size between 1 and 2000 items (Default: 100)
offset Optional integer Point at which to start indexing into records (Default: 0)

List Change Request Statuses (Legacy)

readByQuery

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

Parameters

Name Required Type Description
object Required string Use CHANGEREQUESTSTATUS
fields Optional string Comma-separated list of fields on the object to list. For best performance and predictability, limit the number of fields. To return all fields, omit the element or provide * for the value.
query Required string SQL-like query based on fields on the object. The following operators are supported: <, >, >=, <=, =, like, not like, in, not in, IS NOT NULL, IS NULL, AND, OR. Illegal XML characters must be properly encoded, and single quotes must be escaped with backslashes ('Jane\'s Deli'). Joins are not supported.
pagesize Optional integer Custom page size between 1 and 1000 items (Default: 100)

Get Change Request Status

read

<read>
    <object>CHANGEREQUESTSTATUS</object>
    <keys>7</keys>
    <fields>*</fields>
</read>

Parameters

Name Required Type Description
object Required string Use CHANGEREQUESTSTATUS
keys Required integer RECORDNO of the change request status to get
fields Optional string Comma-separated list of fields on the object to get. For best performance and predictability, limit the number of fields. To return all fields, omit the element or provide * for the value.

Get Change Request Status by Name

readByName

<readByName>
    <object>CHANGEREQUESTSTATUS</object>
    <keys>Approved Changes</keys>
    <fields>*</fields>
</readByName>

Parameters

Name Required Type Description
object Required string Use CHANGEREQUESTSTATUS
keys Required string Name of the change request status to get
fields Optional string Comma-separated list of fields on the object to get. For best performance and predictability, limit the number of fields. To return all fields, omit the element or provide * for the value.

Create Change Request Status

create

Creates a change request status named Approved Changes mapped to the workflow type of approved changes:

<create>
    <CHANGEREQUESTSTATUS>
        <NAME>Approved Changes</NAME>
        <WFTYPE>approved change</WFTYPE>
    </CHANGEREQUESTSTATUS>
</create>

Parameters

Name Required Type Description
CHANGEREQUESTSTATUS Required object Object to create

CHANGEREQUESTSTATUS

Name Required Type Description
NAME Required string Unique name for the change request status. Use 80 or fewer characters.
WFTYPE Optional string Workflow type for the entry. Use original, revision, forecast, pending change, approved change, other, or none. (Default: none)
STATUS Optional string Status for the change request status. Use active or inactive. (Default: active)
Custom fields Optional varies Custom fields. For a multi-pick-list custom field, implode multiple field values with #~#.

customfield

Name Required Type Description
customfieldname Optional string Custom field ID
customfieldvalue Optional varies Custom field value. For a multi-pick-list custom field, implode multiple field values with #~#.

Update Change Request Status

update

You can update a change request status that you identify either by record number or by name. You cannot change the name of an existing change request status.

Updates the workflow type of a change request status to approved change:

<update>
    <CHANGEREQUESTSTATUS>
        <RECORDNO>14</RECORDNO>
        <WFTYPE>approved change</WFTYPE>
    </CHANGEREQUESTSTATUS>
</update>

Parameters

Name Required Type Description
CHANGEREQUESTSTATUS Required object Object to update

CHANGEREQUESTSTATUS

Name Required Type Description
RECORDNO Optional integer RECORDNO of the change request status to update. Required if not using NAME to specify an existing change request status.
NAME Optional string Unique name of the change request status to update. Required if not using RECORDNO to specify an existing change request status.
WFTYPE Optional string Workflow type for the change request status. Use original, revision, forecast, pending change, approved change, other, or none. If a change request status is already in use on an existing change request, its workflow type cannot be updated.
STATUS Optional string Status for the change request status. Use active or inactive.
Custom fields Optional varies Custom fields. For a multi-pick-list custom field, implode multiple field values with #~#.

customfield

Name Required Type Description
customfieldname Optional string Custom field ID
customfieldvalue Optional varies Custom field value. For a multi-pick-list custom field, implode multiple field values with #~#.

Delete Change Request Status

You can delete a change request status only if it is not in use by a change request.

delete

<delete>
    <object>CHANGEREQUESTSTATUS</object>
    <keys>14</keys>
</delete>

Parameters

Name Required Type Description
object Required string Use CHANGEREQUESTSTATUS
keys Required integer RECORDNO of the change request status to delete

Provide feedback