Create event action in flow designer

Nolan4
Tera Contributor

Hi,

 

Using the create record action in flow designer I am trying to create a record in sysevent table. PFA.

The event state is error and hence the notification is not getting triggered. Can someone assist on this as I have not worked on creating an event like this from a flow designer.

1 ACCEPTED SOLUTION

You can write email script in notification to add user in cc.

 

If that is not possible in your scenario then you can write your custom action to trigger event as mentioned in below article Fire an event via Flow 

 

OR  you can call workflow from your flow designer, via workflow you can fire event and pass param1 to use as CC.

 

Please mark answer as Correct or Helpful based on impact.

By marking my response as correct or helpful, you contribute to helping future readers with similar issues.
Regards,
Abhijit
ServiceNow MVP

View solution in original post

7 REPLIES 7

@Nolan4 

Use this.

gs.eventQueue(inputs.event_name, inputs.event_record, inputs.parm1, inputs.parm2);

parm1 and parm2 can be used to handle cc and bcc. (see the notification form, tab [who will receive])

Or if you have already used the two parameters to hadle other purpose you can refer the below link.

https://www.servicenow.com/community/developer-forum/cc-and-bcc/m-p/2415613#M941901

 

 

Please mark my answer as correct and helpful based on Impact.

newhand
Mega Sage

@Nolan4 

What is the purpers of create a event record manually ?

To trigger an event ?

 

If yes ,  see  Here  .  or call the event api  from scripts.

 

gs.eventQueue(inputs.event_name, inputs.event_record, inputs.parm1, inputs.parm2);

 

Please mark my answer as correct and helpful based on Impact.

reshmapatil
Tera Guru

Hi @Nolan4 ,

 

You can create Script Step Action and call event there:

gs.eventQueue(inputs.event_name, inputs.event_record, inputs.parm1, inputs.parm2);

For more details check:

https://www.servicenow.com/community/now-platform-articles/fire-an-event-via-flow-custom-action-guid...

 

Regards,

Reshma

**Please mark my answer correct or helpful based on the impact**