Last active
July 26, 2023 14:43
-
-
Save NithinMahesh1/84b0fa7dfc963b24854cc4767809c83a to your computer and use it in GitHub Desktop.
Custom Event Type Queue Method
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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