Discussions

Ask a Question
ANSWERED

Attachments posted via API not accepting active=1

When posting attachment records via API, I am setting the active value to 1, but when I view the record in the API , the record shows active = 0. I have tried updating that same record to set active = 1, but it remains 0. All other fields of the attachment record seem to post and update correctly. As a result I am not able to view the attachment within the application because active=0. Anyone else have this problem or any ideas?

How do I retrieve an attachment UUID?

Scenario... I'm using Zapier and I wish to retrieve an "attachment UUID" for a certain job in ServiceM8. EG when I do a GET to api.servicem8.com/api_1.0/job/{{uuid}}.json, I can't find photos attached to that job. Alternatively, if I do a GET to api.servicem8.com/api_1.0/attachment/.json with a $filter of job_uuid eq {{uuid}}, there is also no "attachment UUID" in the response. Which area of ServiceM8 should I send my GET to so I can find the "attachment UUID"? BTW, I'm a newbie, but I know how retrieve data from SM8 via the API, I just need to be pointed in the right direction.

Getting "Authorization Required" everytime

Team, I want to register call back url for webhook to receive updated when client's data get change/updated on servicem8. Getting "Authorization Required" every time while subscribing for the webhook callback url. What i'm missing here.? can you give me step to do this? ******************************************************************** curl --location --request POST 'https://api.servicem8.com/webhook_subscriptions' \ --header 'Authorization: bearer [AccessToken]' \ --header 'Accept: application/json' \ --header 'Content-Type: application/x-www-form-urlencoded' \ --form 'object="Company"' \ --form 'fields="Active"' \ --form 'callback_url="[Webhook_Server_Callback_URL]"' ******************************************************************** OUT PUT : Authorization Required

Bug: Job Materials being removed if two staff / or API and staff access the same Job.

Hi, We have found a bug in relation to job materials being marked as removed for jobs where more than one user/api is accessing, or has accessed the job. For example if a staff member has a job card open and is adding materials or updating the job notes etc, and the API inserts Job Materials in to the job. When the staff member clicks save, the Job Materials sent via API have their status changed to removed. To extend on this issue, I was able to repeat it within ServiceM8 itself. One browser is logged in via incognito, the other is not. If I impersonate one staff member and add materials to a job, and then another staff member does the same. The jobs are now loaded as is. If either of these staff members open that job card again without the need to refresh their browser, they don't see the materials the other staff member added, and so if they click save, then the materials added by the other is marked as removed. The same issue occurs if you are on the iOS app, and add a material item to the job, and someone on their desktop is adding a note or additional items to the job they had opened. I have recorded two videos to demonstrate the issues explained above, unfortunately no audio, however, I did write in the materials description or job notes what is taking place. https://drive.google.com/file/d/1HKVFWqlIciqvi4tn9P5KqWMWPYLNzJZd/view?usp=sharing https://drive.google.com/file/d/1OcaylOHM43yTVlC_d7pZh6Auv6FL6JgW/view?usp=sharing Please feel free to reach out for more information, if required.

bearer token not working with api call

I am getting this error below when I try to use a bearer token in my custom add on Error:"Account trial has expired. Please select an account plan and try again." the format of the API call is as follows url: 'https://api.servicem8.com/api_1.0/material.json?%24filter=active%20eq%201', headers: { accept: 'application/json', authorization : 'Bearer '+event.auth.accessToken }

Getting Multiple Attachments For Same Edited Attachment.

Hello Team, Hope you are doing great! Problem1 : We are having some trouble with the Servicem8 API endpoint result we received in Attachment. We are getting multiple entries for the attachment for the Job UUID : d6023442-9e7e-4438-aae6-1ee1d115e4bb Job #23422 This attachment has been updated 2-3 times but ultimately we should receive only one attachment in result json at the moment. But currently its giving each edited Attachments. Can you please look into this? END POINT : https://api.servicem8.com/api_1.0/attachment.json?%24filter=related_object_uuid%20eq%20%27d6023442-9e7e-4438-aae6-1ee1d115e4bb ******************************************************************************************** Problem2 : Some time we are getting this error ( [errorCode] => 429 [message] => Number of allowed API requests per minute exceeded ) Query : Can you please tell us how many API request we can have per minute? And if we want to increase it then how can we do that? Please answer on this as well.
ANSWERED

CLI lookup

Hi team, I have a client who is using servicem8 and is very happy with the service. I am working on streamlining things, and one of the ideas is to assist with customers who are "known" already in the servicem8 platform can be identified when they call. So what I would like is :- - when someone calls my client I want to take the caller CLI (number) and perform a "lookup" within the servicem8 platform via an API call that will return "customer name" or "business name". Because it is my voice platform the customer is using, I can capture the A-party caller number and can send the API request. Just no sure if I can use the phone number as a key to return a customer name. Thanks, Matt

Multiple vendors and webhooks

What is the best way to distinguish which vendors the webhooks belong to when dealing with multiple vendors. I can work around most categories such as Job, which I can easily link back to a vendor via the created_by_staff but categories such as "company" have no fields that can easily be isolated. It is possible to make one as the webhook does not contain any data as to who produced the webhook other than the actual item which as described above sometimes is not enough

API Automated Backup of Data

Hi, Is there a way to setup an automatic download a backup instead of manual through API? Thanks

Airtable

Hi - Can you please let me know if we can link our account to airtable