getOnSiteJobsCheckResults
Get check results for creating requests and appointments.
Arguments
Job type for appointment checks.
Supply point identifier to market name mapping. If this is provided, supplyPointInternalIds cannot be provided. Either one of them must be provided.
List of internal IDs of supply points. If this is provided, supplyPointIdentifierToMarketNameMapping cannot be provided. Either one of them must be provided.
Returns
OnSiteJobsCheckResultsTypeCheck results for creating On-Site Jobs requests and appointments.
Possible Errors
Allowed Viewers
Query Complexity
1Examples
The example data in the variables and responses below are autogenerated values designed to resemble real inputs. They do not represent actual customer data, and in some cases may require additional validation.
query GetOnSiteJobsCheckResults(
$jobType: String,
$supplyPointIdentifierToMarketNameMapping: [SupplyPointIdentifierToMarketNameMappingInput],
$supplyPointInternalIds: [Int]
) {
getOnSiteJobsCheckResults(
jobType: $jobType,
supplyPointIdentifierToMarketNameMapping: $supplyPointIdentifierToMarketNameMapping,
supplyPointInternalIds: $supplyPointInternalIds
) {
appointmentCheckResults {
...CheckResultTypeFragment
}
canCreateAppointment
canCreateRequest
hasAppointmentWarnings
hasRequestWarnings
requestCheckResults {
...CheckResultTypeFragment
}
}
}
Variables
{
"jobType": "another-western-power-save-hand",
"supplyPointIdentifierToMarketNameMapping": SupplyPointIdentifierToMarketNameMappingInput,
"supplyPointInternalIds": 46
}
Response
{
"data": {
"getOnSiteJobsCheckResults": {
"appointmentCheckResults": [CheckResultType],
"canCreateAppointment": true,
"canCreateRequest": true,
"hasAppointmentWarnings": true,
"hasRequestWarnings": true,
"requestCheckResults": [CheckResultType]
}
}
}