python-fmrest icon indicating copy to clipboard operation
python-fmrest copied to clipboard

Question - How to access messages array when creating record

Open Pete214 opened this issue 1 year ago • 2 comments

Is there a way to access the messages array (which contains "code" and "message") that's returned by the FileMaker Data API when a record is created please?

Thanks in advance.

Pete214 avatar Apr 03 '24 16:04 Pete214

You can get the "code" via the Server's last_error property.

The message is currently only available in the exception value when an error occurs.

For what do you need the code/message? Just to make sure that no error has occurred?

davidhamann avatar Apr 08 '24 14:04 davidhamann

Brilliant – thanks very much for that.

I just want to to be able to confirm if the record has been created and that there wasn’t an error.

Pete214 avatar Apr 09 '24 09:04 Pete214