Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

F.ex. if the script is run to generate the value for a task custom field, the context is the task. The context is accessed through the object named this.

If you are using the new syntax: Refer to the API documentation for details about the various objects. Some objects allow you to easily access other objects that are somehow connected, e.g. if this is a asktask, then this.user is the responsible user for the task.

Notice that the new syntax is still very experimental, you should probably use the old syntax.

Microbizz objectDocumentationList of connected objects
CustomerMicropedia - the "customer" object

this.person

this.user

EdiInvoiceMicropedia - the "edi" object

this.todo

this.user

this.customer

EquipmentMicropedia - the "tool" object

this.placeofhome

this.user

InvoiceMicropedia - the "invoice" object

this.user

this.customer

InvoiceLineMicropedia - the "invoiceline" object

this.todo

this.customer

PersonMicropedia - the "person" object
ProjectMicropedia - the "project" object

this.user

this.customer

RegistrationMicropedia - the "registrationentry" object

this.todo

this.user

this.customer

TaskMicropedia - the "todo" API object

this.customer

this.user

this.project (same for both new and old projects)

UserMicropedia - the "user" object
ProductMicropedia - the "product" object
PlanningMicropedia - the "prodplanentry" object
QuotationMicropedia - the "salescontract" object

this.customer

this.user

AppointmentMicropedia - the "event" object

this.user

this.customer

...