- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-26-2020 05:30 AM
I am experimenting with flow designer and trying to replicate an existing workflow triggered off a catalog request item. Is there a way in Flow Designer to trigger events the same way there is in Workflow?
For example I have a Create Event activity in my existing workflow that references an event in the Event Registration (sysevent_register) table. The event triggers a standard email notification.
In Flow Designer i'd like to trigger the same events so I don't have to manually populate the Send Email action each time.
Solved! Go to Solution.
- Labels:
-
Scripting and Coding

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-26-2020 05:44 AM
You can try "Create Record" OOB Action on the Events table (sysevent) to generate a new Event in Flow Designer.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-26-2020 05:44 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-26-2020 06:25 AM
Thanks! Worked a treat.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-23-2021 12:25 PM
be mindful on hoW he's adding comma for each Parm1. (Otherwise you will end up getting email address combined eg. abc@email.comxyz@email.com) Once you add comma, you can add replace(/(^[,\s]+)|([,\s]+$)/g, '') script to filter out any unnecessary commas in your event call.
I had to address each recipient in the email content so I used Parm2 to get their names, which I don't think is this requirement.
In flow ACTION:
(function execute(inputs, outputs) {
gs.eventQueue(inputs.eventName, inputs.reqItemRecord, inputs.eventParm1.replace(/(^[,\s]+)|([,\s]+$)/g, ''), inputs.eventParm2.replace(/(^[,\s]+)|([,\s]+$)/g, ''));
})(inputs, outputs);

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-26-2020 05:46 AM
I believe you can just use the create record action to add the event into the table.