For the complete documentation index, see llms.txt. This page is also available as Markdown.

_createData

Creates a new Notification Type.

Parameter

name

The name for the created Notification Type.

type

The action which will cause a Notification to be sent:

  • 0 = create

  • 1 = update

  • 2 = time

tableName

The area in relation to the created Notification Type, can be set to one of the following:

  • asset

  • contract

  • customer

  • file

  • invoice

  • job

  • jobRecurring

  • opportunity

  • purchaseOrder

  • quote

  • requisitionOrder

  • task

recipient

An array which sets who will receive the Notification, can be set to the assigned User, Creator, and the previous User in relation to what the notification is about in the "tableName" parameter. e.g ['user'=>'1','creator'=>'1','other'=>'1']

replyTo

An email for recipients to send replies to. Only used in Email Notifications specifically.

subject

What the subject header of the Notification will be.

body

A message field for the Notification to include under the Subject heading.

format

An integer parameter related to the channel of which this Notification is being made for. 0 = Email Notification 3 = Push Notification

meta

An array which can include other potential values depending on the sort of Notification being created, see Examples section below.

status

Sets whether the Notification will already be Enabled upon creation or disabled. (0 = Disabled, 1 = Enabled)

Examples

An example of an Email Notification.

A Push Notification for when a Job is created, to be sent to the User assigned and also the creator of the Job.

An example of a Push Notification to be sent when a Job Recurrence receives an update, sent to the assigned User and the creator of the Recurrence.

Results

On Success

On Failure

If the "name" parameter is not set:

If the "subject" parameter is not set:

Last updated