Skip to content

Instantly share code, notes, and snippets.

@NithinMahesh1
Last active July 26, 2023 14:43
Show Gist options
  • Select an option

  • Save NithinMahesh1/84b0fa7dfc963b24854cc4767809c83a to your computer and use it in GitHub Desktop.

Select an option

Save NithinMahesh1/84b0fa7dfc963b24854cc4767809c83a to your computer and use it in GitHub Desktop.
Custom Event Type Queue Method
Item publishEvent = this.newItem("Method", "ehf_PublishEvent");
Item eventItem = this.newItem();
// Change the "Custom Event Type Name", "Context item id or subject string", and "Context item data" to actual values
eventItem.setProperty("type", "Custom Event Type Name");
eventItem.setProperty("subject", "Context item id or subject
string");
eventItem.setProperty("data", "Context item data");
publishEvent.setPropertyItem("event", eventItem);
Item result = publishEvent.apply();
return this;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment