The JSON object below defines the configuration for this service plugin extension. How you supply values depends on the framework you’re using:
plugin.json
file.If you created your service plugin extension with the CLI, required fields are automatically populated for you.
The trigger configuration
example of a trigger:
{ appId: "56cc7843-fdfc-417f-a660-d4af9a2eafe3", triggerKey: "form_submit", displayName: "Visitor submits a form", payloadDataSchema: { "$schema": "http://json-schema.org/draft-07/schema", "type": "object", "title": "Visitor submits a form Payload Schema", "description": "The schema of the payload that is part of the triggered event", "default": {}, "examples": [ { "formId": "60d2cd50-1047-4164-884d-8c24fbda84bb", "formName": "My Cool Form } ], "properties": { "formId": { "$id": "#/properties/formId", "type": "string", "format": "uuid", "title": "Form ID", "description": "The form identifier", "default": "", "examples": [ "60d2cd50-1047-4164-884d-8c24fbda84bb" ] }, "formName": { "$id": "#/properties/formName", "type": "string", "title": "Form Name", "description": "The form display name", "default": "", "examples": [ "My Form" ] }, "contactId": { "$id": "#/properties/contactId", "type": "string", "format": "uuid", "title": "Contact Id", "description": "The Id of the contact which submitted the form", "default": "", "identityType": "contact", // can be contact, visitor, user limited to 1 type per identity, "namespace": "contact" // friendly name to be used later on, in order to user that person's data "contact.firstName" } }, "required": [ "formId", "formName", "contactId" ], "additionalProperties": false } }
URL to the trigger provider service