_setJobRefCustomer
Set a Customer job reference on an Appointment.
Parameters
id
The ID of the Appointment.
value
The Customer job reference.
Example
FM_api('Appointment_setJobRefCustomer', ['id' => '123', 'value' => 'ExampleCustomerJobRef']);
Result
On Success
{'ok':1}
If the Appointment already has the Customer job reference:
{'ok':1,'warning':'value already set'}
On Failure
If no Appointment ID is provided:
{'error':'no ID provided'}
If no Customer job reference is provided:
{'error':'no value provided'}
If the Appointment does not exist:
{'error':'appointment does not exist'}
Last updated