_setTables

Adds data to all table fields

Parameters

job_id

The id of the Appointment

table

The table and its data.

Example (Single Column)

FM_api('Appointment_setTables',['job_id'=>'49','table'=>'{"122":[["1","2","3","4","5","6","7","8","9","YES"]]}']);

Example (Multiple Columns)

FM_api('Appointment_setTables',['job_id'=>'49','table'=>'{"122":[["1","2","3","4","5","6","7","8","9","YES"],["1","2","3","4","5","6","7","8","9","YES"]]}']);

Multiple Tables

FM_api('Appointment_setTables',['job_id'=>'49','table'=>'{"122":[["1","2","3","4","5","6","7","8","9","YES"]]},{"123":[["10","11","12","13","14","15","16","17","18","No"]]}']);

On Success

{'ok':1}

On Failure (Table Data)

{'error':'table parameter did not JSON-decode into an object'}

On Failure (Missing Data)

{'error':'table and job_id parameters are required'}

Last updated