Salesforce

Create an event for an application

« Go Back
Information
Create an event for an application
000004202
Public
Product Selection
aiWare - aiWare
Article Details

You can create a custom event for an application.

Steps

  • Call createEvent().
mutation {
  createEvent(input: {
    eventName: String
    eventType: String
    # ID of the application this event is for
    application: String
    # Who can subscribe to this event. True if anyone, else false
    public: Boolean
    # A message in Protocol buffer format. If not provided, defaults to custom message
    # (ex. message JobCompleted { string job_id = 10; string timestamp_ms = 11;         # string job_status = 12; } )
    schemaData: Protobuf
  })
  {
    id
    eventName
    eventType
    public
    description
    schemaData
  }
}

The response looks like this: 

{
  "data": {
    "createEvent": {
      "id": "54336641-0e17-473c-b329-4c21417cb075",
      "eventName": "test-event",
      "eventType": "test-event-start",
      "public": true,
      "description": "",
      "schemaData": ""
    }
  }
}
Additional Technical Documentation Information
Properties
1/28/2025 7:36 PM
1/28/2025 7:38 PM
1/28/2025 7:38 PM
Documentation
Documentation
000004202
Translation Information
English

Powered by