_setNotes

Adds new notes to or edits existing notes of the Appointment.

Parameters

id

The ID of the Appointment.

value

notes of the Appointment, in JSON format (see example)

Examples

FM_api('Appointment_setNotes', [
  'id' => '123',
  'value' => json_encode([
    ['content'=>'This is a note.'],
    ['content'=>'This is another note']
  ])
]);
FM_api('Appointment_setNotes', [
  'id' => '123',
  'value' => json_encode([
    ['content'=>'This is a note.',
      'createdby'=>32,
      'noteTime'=>1770808774347
    ],
    ['content'=>'This is another note']
  ])
]);

Result

On Success

On Failure

If no Appointment ID is provided:

If no notes are provided:

If the Appointment does not exist:

Last updated