Skip to main content

ChangeForecast

A forecast for one record of a proposed change that has not been saved: whether an undo of the change is expected to work, and which effects of the change an undo cannot repair. Reading a forecast changes no business records.

type ChangeForecast {
blockers: [UndoBlocker!]!
effects: [ChangeEffect!]!
reason: String
recordId: ID!
undoOutcome: UndoOutcome!
}

Fields​

ChangeForecast.blockers ● [UndoBlocker!]! non-null object​

The blockers that stop an undo of the change, one entry for each blocking property, of the kinds this API recognises. A newer kind from EventsAir is left out. Empty unless undoOutcome is NOT_POSSIBLE. It can be empty even then, when EventsAir did not list the blockers. The reason field is always the full summary.

ChangeForecast.effects ● [ChangeEffect!]! non-null object​

The effects of the change that an undo cannot repair, in the order EventsAir reports them. Empty when EventsAir foresees none. These effects can happen whatever the undoOutcome is.

ChangeForecast.reason ● String scalar​

Why an undo of the change will not be possible. Set only when undoOutcome is NOT_POSSIBLE. This is plain text for people to read, not for parsing: its wording can change without a schema change. Optional.

ChangeForecast.recordId ● ID! non-null scalar​

The unique identifier of the record the proposed change is for.

ChangeForecast.undoOutcome ● UndoOutcome! non-null enum​

Whether an undo of the change is expected to work once the change is saved.

Returned By​

updateSessionsForecast query