Discussions
How to apply filter on records from Company,Job,Materials?
about 6 years ago by Harish Tyagi,
Currently i am quering all the list records, to identify, record exist or not.
if we are having large numbers of records, it takes time to response.
How we can filter the particular record from the list?
Is there any way to apply filters and get result in less time.?
Thanks
about 6 years ago by ServiceM8 TeamAdmin
Hi Harish,
You can apply filters to any endpoint to filter based on your requirements, have a look here:
https://developer.servicem8.com/docs/filtering
If you already know the record uuid (eg. 62bcc5f0-0616-4c7c-9e3e-c2c3585b6e01) you can directly query if it exists, eg. https://api.servicem8.com/api_1.0/Job/62bcc5f0-0616-4c7c-9e3e-c2c3585b6e01.json
You'll receive a 200 if it exists, otherwise a 404.
Cheers,
Ben