<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>question Re: Adding an &amp;quot;eventQueue&amp;quot; Action to Flow-Designer in Developer forum</title>
    <link>https://www.servicenow.com/community/developer-forum/adding-an-quot-eventqueue-quot-action-to-flow-designer/m-p/1408807#M65733</link>
    <description>&lt;P&gt;Wow.. that was quick, seems like the servicenow community is the way to go &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;BR /&gt;Sadly I can only mark one correct answer, even though both are very right and helpful.&lt;BR /&gt;&lt;BR /&gt;Well, seems like it is as I thought. Either i create the record into the table directly or create a custom action.&lt;BR /&gt;Thank you guys very much.&lt;/P&gt;</description>
    <pubDate>Tue, 08 Mar 2022 10:39:33 GMT</pubDate>
    <dc:creator>Michael_Martin</dc:creator>
    <dc:date>2022-03-08T10:39:33Z</dc:date>
    <item>
      <title>Adding an "eventQueue" Action to Flow-Designer</title>
      <link>https://www.servicenow.com/community/developer-forum/adding-an-quot-eventqueue-quot-action-to-flow-designer/m-p/1408804#M65730</link>
      <description>&lt;P&gt;Hi there,&lt;BR /&gt;I'm relatively new to ServiceNow, just finished the fundamentals path and I'm on my first project.&lt;BR /&gt;I worked as webdeveloper for many years, so I do have a quite good understanding of many programming languages and logics. Only a hard time sometimes to use old javascript, as I've used ES6 a lot and servicenow cannot handle modern stuff ;))&lt;/P&gt;
&lt;P&gt;To my issue.&lt;BR /&gt;I'm using "Flow Designer" and face a problem here. I need to create an eventQueue that fires and event for sending an email. I don't want to send the email directly in flow, it just should create that queue element for the sysevent table.&lt;/P&gt;
&lt;P&gt;For many things there are actions available, but why not for creating an event?&lt;BR /&gt;What I want to achieve would be quite easy ..&lt;/P&gt;
&lt;PRE class="language-javascript"&gt;&lt;CODE&gt;gs.eventQueue('pfx_time_entries_rejected', Result, Result.u_ts_employee);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Is there an easy way to eventQueue something in Flow Designer or do I actually have to create a record into the sysevent table? Or even worse, write an own action somehow for this simple additional step?&lt;BR /&gt;&lt;BR /&gt;Of course I invested some hours searching for this topic first, before asking here &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt; But, as a new servicenow developer, it can be quite overwhelming finding stuff ;))&lt;BR /&gt;I'm also quite surprised that there is no button for a custom action. I mean, every other system does have mostly the ability to add an action with custom code. But here are only predefined actions and not a blank action to write own code.&lt;BR /&gt;&lt;BR /&gt;hope someone can help me.&lt;/P&gt;</description>
      <pubDate>Tue, 08 Mar 2022 06:52:03 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/adding-an-quot-eventqueue-quot-action-to-flow-designer/m-p/1408804#M65730</guid>
      <dc:creator>Michael_Martin</dc:creator>
      <dc:date>2022-03-08T06:52:03Z</dc:date>
    </item>
    <item>
      <title>Re: Adding an "eventQueue" Action to Flow-Designer</title>
      <link>https://www.servicenow.com/community/developer-forum/adding-an-quot-eventqueue-quot-action-to-flow-designer/m-p/1408805#M65731</link>
      <description>&lt;P&gt;Hi Michael,&lt;/P&gt;
&lt;P&gt;In Flow designer you can create an action. Give this action the "Run script" and inside of that you can make your eventQueue call.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper"&gt;&lt;img src="https://www.servicenow.com/community/image/serverpage/image-id/148986iA166632D0F59E0F8/image-size/large?v=v2&amp;amp;px=999" title="find_real_file.png" alt="find_real_file.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;You can test the custom action before saving+publishing.&lt;/P&gt;
&lt;P&gt;Once published, from your main flow you can add an action and you will find your custom action in the list.&lt;/P&gt;
&lt;P&gt;Alternatively, you don't need to go through all this trouble and instead use the createRecord OOTB action to create a new record for the event.&lt;/P&gt;
&lt;P&gt;Useful resource for events/custom actions in flow:&lt;/P&gt;
&lt;P&gt;https://community.servicenow.com/community?id=community_article&amp;amp;sys_id=3450a52fdbcf2740afc902d5ca96190b&lt;/P&gt;
&lt;P&gt;Hope this helps.&lt;/P&gt;
&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;&lt;STRONG&gt;&lt;EM&gt;Please mark my answer as Correct/Helpful based on impact&lt;/EM&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;&lt;EM&gt;Regards,&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;&lt;EM&gt;Dan H&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 08 Mar 2022 07:06:31 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/adding-an-quot-eventqueue-quot-action-to-flow-designer/m-p/1408805#M65731</guid>
      <dc:creator>Dan H</dc:creator>
      <dc:date>2022-03-08T07:06:31Z</dc:date>
    </item>
    <item>
      <title>Re: Adding an "eventQueue" Action to Flow-Designer</title>
      <link>https://www.servicenow.com/community/developer-forum/adding-an-quot-eventqueue-quot-action-to-flow-designer/m-p/1408806#M65732</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;There is no need to create a custom action for this.&lt;/P&gt;
&lt;P&gt;You can simply use the Create Record action, and choose the syseevent table, and set the event parameters as input to the Create Record action.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper"&gt;&lt;img src="https://www.servicenow.com/community/image/serverpage/image-id/149036i2C755D4719B44882/image-size/large?v=v2&amp;amp;px=999" title="find_real_file.png" alt="find_real_file.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 08 Mar 2022 07:17:08 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/adding-an-quot-eventqueue-quot-action-to-flow-designer/m-p/1408806#M65732</guid>
      <dc:creator>OlaN</dc:creator>
      <dc:date>2022-03-08T07:17:08Z</dc:date>
    </item>
    <item>
      <title>Re: Adding an "eventQueue" Action to Flow-Designer</title>
      <link>https://www.servicenow.com/community/developer-forum/adding-an-quot-eventqueue-quot-action-to-flow-designer/m-p/1408807#M65733</link>
      <description>&lt;P&gt;Wow.. that was quick, seems like the servicenow community is the way to go &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;BR /&gt;Sadly I can only mark one correct answer, even though both are very right and helpful.&lt;BR /&gt;&lt;BR /&gt;Well, seems like it is as I thought. Either i create the record into the table directly or create a custom action.&lt;BR /&gt;Thank you guys very much.&lt;/P&gt;</description>
      <pubDate>Tue, 08 Mar 2022 10:39:33 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/adding-an-quot-eventqueue-quot-action-to-flow-designer/m-p/1408807#M65733</guid>
      <dc:creator>Michael_Martin</dc:creator>
      <dc:date>2022-03-08T10:39:33Z</dc:date>
    </item>
    <item>
      <title>Re: Adding an "eventQueue" Action to Flow-Designer</title>
      <link>https://www.servicenow.com/community/developer-forum/adding-an-quot-eventqueue-quot-action-to-flow-designer/m-p/1408808#M65734</link>
      <description>&lt;P&gt;No problem. Happy to help &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 08 Mar 2022 10:45:24 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/adding-an-quot-eventqueue-quot-action-to-flow-designer/m-p/1408808#M65734</guid>
      <dc:creator>Dan H</dc:creator>
      <dc:date>2022-03-08T10:45:24Z</dc:date>
    </item>
    <item>
      <title>Re: Adding an "eventQueue" Action to Flow-Designer</title>
      <link>https://www.servicenow.com/community/developer-forum/adding-an-quot-eventqueue-quot-action-to-flow-designer/m-p/1408809#M65735</link>
      <description>&lt;P&gt;Is it possible, that it misses one core field?&lt;BR /&gt;When I add Name, Table, Parm1, Parm2 it doesnt fire the event.&lt;BR /&gt;&lt;BR /&gt;It does get added to the sysevent table and all looks fine. But the Notification itself, doesnt register that event and doesnt&amp;nbsp;send the mail.&lt;BR /&gt;&lt;BR /&gt;But when I use Scripts -&amp;gt; Background to test it.. gs.eventQueue("....", null, null); it does create the entry as well, but it also does send the mail.&lt;BR /&gt;&lt;BR /&gt;Seems like there is something missing in the background, maybe a secondary entry.&lt;BR /&gt;Or maybe its the queue number? Via flow it gets a value of 1. When i use the script debugger, it gets a random number.&lt;BR /&gt;&lt;BR /&gt;Should i set this manually high in the flow?&lt;/P&gt;</description>
      <pubDate>Tue, 08 Mar 2022 15:20:32 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/adding-an-quot-eventqueue-quot-action-to-flow-designer/m-p/1408809#M65735</guid>
      <dc:creator>Michael_Martin</dc:creator>
      <dc:date>2022-03-08T15:20:32Z</dc:date>
    </item>
    <item>
      <title>Re: Adding an "eventQueue" Action to Flow-Designer</title>
      <link>https://www.servicenow.com/community/developer-forum/adding-an-quot-eventqueue-quot-action-to-flow-designer/m-p/1408810#M65736</link>
      <description>&lt;P&gt;No, sorry, just a bad example on my end.&lt;/P&gt;
&lt;P&gt;You should also set a value in the field called "Instance", which should be a reference to a GlideRecord object.&lt;/P&gt;</description>
      <pubDate>Tue, 08 Mar 2022 18:06:26 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/adding-an-quot-eventqueue-quot-action-to-flow-designer/m-p/1408810#M65736</guid>
      <dc:creator>OlaN</dc:creator>
      <dc:date>2022-03-08T18:06:26Z</dc:date>
    </item>
    <item>
      <title>Re: Adding an "eventQueue" Action to Flow-Designer</title>
      <link>https://www.servicenow.com/community/developer-forum/adding-an-quot-eventqueue-quot-action-to-flow-designer/m-p/1408811#M65737</link>
      <description>&lt;P&gt;Thank you, that was it.&lt;BR /&gt;Seems also to not matter what item is as instance.. works perfectly fine with the triggered object.&lt;/P&gt;</description>
      <pubDate>Wed, 09 Mar 2022 05:49:27 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/adding-an-quot-eventqueue-quot-action-to-flow-designer/m-p/1408811#M65737</guid>
      <dc:creator>Michael_Martin</dc:creator>
      <dc:date>2022-03-09T05:49:27Z</dc:date>
    </item>
  </channel>
</rss>

