commands

Time

This command take no attributes and returns the current servertime.

time

Returns an ElementTree object.

print(commands.Time().tostring())
>>> b'<Time/>'

Supports tostring() and prettify().

Read

This command is used to read objects.

attribute

type

description

type

String

an OpenAir complex type

method

String

one of: all, equal to, not equal to, custom equal to, user, project, not exported

attribs

Dict

one of: limit, deleted, include_flags, _include_nondeleted, _with_project_only, base_currency, generic, enable_custom

filters

List

a list of Filter objects

orderby

Dict

keys: field, order (default 'asc')

fields

List

a list of field names

read

Returns an ElementTree object.

Supports tostring() and prettify().

Read.Filter

This command is used to create read filter objects.

attribute

type

description

filter

String | None

one of: open-envelopes, open-envelopes, approved-envelopes, rejected-envelopes, submitted-envelopes, nonreimbursed-envelopes, reimbursable-envelope, open-slips, approved-slips, open-timesheets, approved-timesheets, rejected-timesheets, submitted-timesheets, not-exported, approved-revenue-recognition-transactions

field

String | None

a field name to filter on

datatype

Datatype

a datatype.Datatpe object

getFilter

Returns a dictionary containing filter data.

Report

Use the Report command to run a report and email a PDF copy of a Timesheet, Envelope (Exp Report), or Saved report.

attribute

type

description

type

String

an OpenAir complex type

report

Datatype

a datatype.Datatype object; one of Timesheet, Envelope, or Report

getReport

Returns an ElementTree object.

Supports tostring() and prettify().

Add

Use the Add command to add records.

attribute

type

description

type

String

an OpenAir complex type

attribs

Dict

one of: enable_custom

datatype

Datatype

a datatype.Datatpe object

add

Returns an ElementTree object.

Supports tostring() and prettify().

Delete

Use the Delete command to delete records.

attribute

type

description

type

String

an OpenAir complex type

datatype

Datatype

a datatype.Datatpe object

delete

Returns an ElementTree object.

Supports tostring() and prettify().

Modify

Use the Modify command to modify records.

attribute

type

description

type

String

an OpenAir complex type

attribs

Dict

one of: enable_custom

datatype

Datatype

a datatype.Datatpe object

modify

Returns an ElementTree object.

Supports tostring() and prettify().

ModifyOnCondition

Use the ModifyOnCondition command to perform actions such as updating the external_id of a record type only if the update time on the OpenAir server is older.

attribute

type

description

type

String

an OpenAir complex type

datatype1

Datatype

a datatype.Datatpe object

datatype2

Datatype

a datatype.Datatpe object

modify

Returns an ElementTree object.

Supports tostring() and prettify().

Submit

Use the Submit command to submit records for approval.

attribute

type

description

type

String

an OpenAir complex type

datatype

Datatype

a datatype.Datatpe object

approval

Datatype

a datatype.Datatpe object

submit

Returns an ElementTree object.

Supports tostring() and prettify().

CreateAccount

Use the CreateAccount command to create a new OpenAir account.

attribute

type

description

company

Datatype

a datatype.Datatpe object

user

Datatype

a datatype.Datatpe object

create

Returns an ElementTree object.

Supports tostring() and prettify().

CreateUser

Use the CreateUser command to create a new OpenAir user.

attribute

type

description

company

Datatype

a datatype.Datatpe object

user

Datatype

a datatype.Datatpe object

create

Returns an ElementTree object.

Supports tostring() and prettify().

Switch

Use the Switch command to customize the appearance of the product using switches and settings.

attribute

type

description

type

String

an OpenAir complex type

user

Datatype

a datatype.Datatpe object

switch

Returns an ElementTree object.

Supports tostring() and prettify().

MakeURL

Use the MakeURL command to obtain a URL for a specific application and screen.

attribute

type

description

uid

String

the id of a valid logged in user

page

String

one of: default-url, company-settings, currency-rates, import-export, custom-fields, list-reports, list-customers, list-projects, list-prospects, list-resources, list-timesheets, create-timesheet, list-timebills, list-invoices, create-invoice, list-envelope-receipts, list-envelopes, create-envelope, create-envelope-receipt, dashboard, list-purchase-requests, quick-search-resources, custom-search-resources, view-invoice, dashboard-project, grid-timesheet, report-timesheet

app

String

one of: 'km', 'ma', 'pb', 'rm', 'pm', 'ta, 'te', or 'tb'

arg

Datatype

a datatype.Datatpe object

makeurl

Returns an ElementTree object.

Supports tostring() and prettify().

Last updated