Create Event equivalent in Flow Designer

Geoff_T
Mega Sage

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.

1 ACCEPTED SOLUTION

Miguel Donayre
ServiceNow Employee
ServiceNow Employee

You can try "Create Record" OOB Action on the Events table (sysevent) to generate a new Event in Flow Designer.

find_real_file.png

View solution in original post

9 REPLIES 9

Miguel Donayre
ServiceNow Employee
ServiceNow Employee

You can try "Create Record" OOB Action on the Events table (sysevent) to generate a new Event in Flow Designer.

find_real_file.png

Thanks! Worked a treat.

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);

Tony Cattoi
Mega Guru

I believe you can just use the create record action to add the event into the table.