Webhook, finding scheduleID
Posted: Thu Feb 09, 2023 11:59 pm
Hi simPRO Group,
we have web hook configured in simPRO to call our API endpoint.
Consider the situation where there is a Job 300555 and there is an Employee scheduled for the job (hence there is a schedule created).
When Employee press Travelling in simPRO mobile application, the only webhook we are receiving is the following:
From this webhook, we see the jobID 300555, but does not have scheduleID.
What is the best and the most performance efficient way to find out which scheduleID was used to trigger this change?
Thank you
we have web hook configured in simPRO to call our API endpoint.
Consider the situation where there is a Job 300555 and there is an Employee scheduled for the job (hence there is a schedule created).
When Employee press Travelling in simPRO mobile application, the only webhook we are receiving is the following:
Code: Select all
{
"build": ".......",
"date_triggered": "2023-01-31T09:05:27+00:00",
"name": "Job",
"ID": "job.status",
"reference": {
"companyID": 0,
"jobID": 300555,
"statusID": 10
},
"action": "status",
"description": "Status of Job #300555 set to \"Job : In Progress\""
},
"request_body": "{\"ID\":\"job.status\",\"build\":\".......................\",\"description\":\"Status of Job #300555 set to \\\"Job : In Progress\\\"\",\"name\":\"Job\",\"action\":\"status\",\"reference\":{\"companyID\":0,\"jobID\":300555,\"statusID\":10},\"date_triggered\":\"2023-01-31T09:05:27+00:00\"}",
"request_method": "POST",
"request_headers": {
.........................
},
"request_uri_args": {},
"request_uri": "........."
}
From this webhook, we see the jobID 300555, but does not have scheduleID.
What is the best and the most performance efficient way to find out which scheduleID was used to trigger this change?
Thank you