getOnSiteJobsRequestByExternalReference
Get request by external reference and agent.
Arguments
The agent for the request.
The external reference of the request to return.
Examples
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 GetOnSiteJobsRequestByExternalReference(
$agent: OnSiteJobsAgent!,
$externalReference: String!
) {
getOnSiteJobsRequestByExternalReference(
agent: $agent,
externalReference: $externalReference
) {
account
agent
appointments {
...OnSiteJobsAppointmentConnectionTypeConnectionFragment
}
assets {
...OnSiteJobsAssetConnectionTypeConnectionFragment
}
comment
createdBy
externalReference
id
isEmergency
marketSupplyPoints {
...SupplyPointConnectionTypeConnectionFragment
}
overallActionsStatus
property {
...PropertyTypeFragment
}
reason
requestActions {
...OnSiteJobsRequestActionConnectionTypeConnectionFragment
}
status
subReason
}
}
Variables
{
"agent": "GENERIC_AGENT",
"externalReference": "perhaps-partner-leader-agreement-director"
}
Response
{
"data": {
"getOnSiteJobsRequestByExternalReference": {
"account": "concern-once-technology-sometimes-someone",
"agent": "staff-effort-success-pull-bar",
"appointments": OnSiteJobsAppointmentConnectionTypeConnection,
"assets": OnSiteJobsAssetConnectionTypeConnection,
"comment": "admit-address-sense-economic-body",
"createdBy": 80,
"externalReference": "continue-face-cold-effort-weight",
"id": "b62ac1fe-a5f0-4e63-85dd-b87da81aa40a",
"isEmergency": true,
"marketSupplyPoints": SupplyPointConnectionTypeConnection,
"overallActionsStatus": "PENDING",
"property": PropertyType,
"reason": "family-reflect-market-box-find",
"requestActions": OnSiteJobsRequestActionConnectionTypeConnection,
"status": "APPOINTMENT_FAILED",
"subReason": "gas-someone-election-effect-role"
}
}
}