Menu
/api/inspect_bookings/checkFactoryLastConsecutiveVisit (Check Factory Last Consecutive Visit)
Check Factory Last Consecutive Visit
POST
/api/inspect_bookings/checkFactoryLastConsecutiveVisitUse it in a workflow
- Add a step and choose the TradeBeyond connector.
- Pick the /api/inspect_bookings/checkFactoryLastConsecutiveVisit (Check Factory Last Consecutive Visit) action (under InspectBookingController).
- Fill in the fields below, then reference the result from later steps as
{{apiInspectBookingsCheckfactorylastconsecutivevisitCheckFactoryLastConsecutiveVisit.response.data}}.
Request
Query parameters
Request body
Enter the body as JSON in the step's Body field.
{
"assignedInspectBookingInfoList": [
{
"id": "string",
"factoryId": "string",
"locationId": "string",
"inspectorIdList": [
"string"
],
"plannedInspectDate": "2025-01-01",
"maxConsecutiveVisit": 0,
"inspectType": "string"
}
],
"lastConsecutiveVisitBeforeWeek": [
{
"factoryId": "string",
"locationId": "string",
"inspectorId": "string",
"visitCount": 0,
"consecutiveBreakDate": "2025-01-01T00:00:00Z",
"lastConsecutiveVisitDate": "2025-01-01T00:00:00Z",
"consecutiveVisitDates": [
"2025-01-01T00:00:00Z"
]
}
]
}
Response
Returns 200 with a boolean. Read it in later steps with {{apiInspectBookingsCheckfactorylastconsecutivevisitCheckFactoryLastConsecutiveVisit.response.data.<field>}}.
Need more? See the TradeBeyond guide for connection setup and behaviour shared by every action.
Was this page helpful?