The chat responses are generated using Generative AI technology for intuitive search and may not be entirely accurate. They are not intended as professional advice. For full details, including our use rights, privacy practices and potential export control restrictions, please refer to our Generative AI Service Terms of Use and Generative AI Service Privacy Information. As this is a test version, please let us know if something irritating comes up. Like you get recommended a chocolate fudge ice cream instead of an energy managing application. If that occurs, please use the feedback button in our contact form!
Skip to content

Push

Senseye PdM has an extensive GraphQL API that can be used to create work events. Alongside External ID support, it is often selected as a low friction method for Work Order integration.

Mutation

The following GraphQL query makes use of the createWorkEvent mutation to create a work event within Senseye:

Mutation
mutation createWorkEvent($input: CreateWorkEventInput!) {
    createWorkEvent(input: $input) {
        workEvent {
            id
            creationTime
        }
    }
}
Variables
{
    "input": {
        "eventTime": "2022-04-03T20:00:00+01:00",
        "message": "Replaced seized bearing on the drive shaft",
        "externalID": "site-A|asset-id",
        "isRoutine": false,
        "workActivity": "repair",
        "failureMode": "MaPS:FAILURE_MODE<No rotation>"
    }
}

More information about the input variables can be found within work event structure documentation.

If you want to use Senseye's ID...

The following is the same example, but using Senseye's ID instead of the externalID:

Variables
{
    "input": {
        "eventTime": "2022-04-03T20:00:00+01:00",
        "message": "Replaced seized bearing on the drive shaft",
        "hierarchyNodeID": "senseye-asset-guid",
        "isRoutine": false,
        "workActivity": "repair",
        "failureMode": "MaPS:FAILURE_MODE<No rotation>"
    }
}