<?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 Issue firing Events/Notifications based on the Approval table from Workflow in ITOM forum</title>
    <link>https://www.servicenow.com/community/itom-forum/issue-firing-events-notifications-based-on-the-approval-table/m-p/914492#M19377</link>
    <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a 'request - approve - fulfill' custom app based on a custom request table(extending task) and I have created a workflow to handle the approval component.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The approver receives a notification on request creation. To achieve this in the workflow I create an 'approval - user' and an external event and notification(based on Approval table) to fire on insert of a new approval record for my app. &lt;/P&gt;&lt;P&gt;I've created buttons on the email notification to allow the approver to approve/reject by inbound mail action. This works fine. &amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After a given time period of inaction (using a workflow timer) I send the approver a reminder notification. I create a separate event and notification for the reminder based on the approval table and then fire the event using 'Create Event' in the workflow. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My problem is... Because the workflow is firing the reminder event, it seems the event and associated notification are identified as based on my request table and not the Approval table. As a result, I'm not able to use the inbound action to allow direct interaction with the approval via the notification. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope that makes sense. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BTW still on Fuji, upgrading soon. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any assistance would be greatly appreciated. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;Steve&lt;/P&gt;</description>
    <pubDate>Wed, 28 Sep 2016 00:42:51 GMT</pubDate>
    <dc:creator>steve_au</dc:creator>
    <dc:date>2016-09-28T00:42:51Z</dc:date>
    <item>
      <title>Issue firing Events/Notifications based on the Approval table from Workflow</title>
      <link>https://www.servicenow.com/community/itom-forum/issue-firing-events-notifications-based-on-the-approval-table/m-p/914492#M19377</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a 'request - approve - fulfill' custom app based on a custom request table(extending task) and I have created a workflow to handle the approval component.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The approver receives a notification on request creation. To achieve this in the workflow I create an 'approval - user' and an external event and notification(based on Approval table) to fire on insert of a new approval record for my app. &lt;/P&gt;&lt;P&gt;I've created buttons on the email notification to allow the approver to approve/reject by inbound mail action. This works fine. &amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After a given time period of inaction (using a workflow timer) I send the approver a reminder notification. I create a separate event and notification for the reminder based on the approval table and then fire the event using 'Create Event' in the workflow. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My problem is... Because the workflow is firing the reminder event, it seems the event and associated notification are identified as based on my request table and not the Approval table. As a result, I'm not able to use the inbound action to allow direct interaction with the approval via the notification. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope that makes sense. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BTW still on Fuji, upgrading soon. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any assistance would be greatly appreciated. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;Steve&lt;/P&gt;</description>
      <pubDate>Wed, 28 Sep 2016 00:42:51 GMT</pubDate>
      <guid>https://www.servicenow.com/community/itom-forum/issue-firing-events-notifications-based-on-the-approval-table/m-p/914492#M19377</guid>
      <dc:creator>steve_au</dc:creator>
      <dc:date>2016-09-28T00:42:51Z</dc:date>
    </item>
    <item>
      <title>Re: Issue firing Events/Notifications based on the Approval table from Workflow</title>
      <link>https://www.servicenow.com/community/itom-forum/issue-firing-events-notifications-based-on-the-approval-table/m-p/914493#M19378</link>
      <description>&lt;P&gt;Hi Steve,&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;What about this... rather than the workflow firing the event directly, use a Run Script activity to find the approval related to your request, retrieve that record with a GlideRecord query, and fire the event (passing the approval GlideRecord instead of current in the second parameter.)? Your event and notification will be tied to the sysapproval_approver table.&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;While not an exact script, this should get you started... (change the event name and parameters as appropriate.)&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;triggerApprovalNotification();&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;function triggerApprovalNotification() {&lt;/P&gt;&lt;BR /&gt;&lt;P&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; var approval = new GlideRecord('sysapproval_appover');&lt;/P&gt;&lt;BR /&gt;&lt;P&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; approval.addQuery('sysapproval', current.getValue('sys_id');&lt;/P&gt;&lt;BR /&gt;&lt;P&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; approval.query();&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; while (approval.next()) {&lt;/P&gt;&lt;BR /&gt;&lt;P&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; gs.eventQueue('approval.reminder', approval, 'parm1', 'parm2');&lt;/P&gt;&lt;BR /&gt;&lt;P&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;}&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 28 Sep 2016 18:00:00 GMT</pubDate>
      <guid>https://www.servicenow.com/community/itom-forum/issue-firing-events-notifications-based-on-the-approval-table/m-p/914493#M19378</guid>
      <dc:creator>Chuck Tomasi</dc:creator>
      <dc:date>2016-09-28T18:00:00Z</dc:date>
    </item>
    <item>
      <title>Re: Issue firing Events/Notifications based on the Approval table from Workflow</title>
      <link>https://www.servicenow.com/community/itom-forum/issue-firing-events-notifications-based-on-the-approval-table/m-p/914494#M19379</link>
      <description>&lt;P&gt;Thanks Chuck, you are a genius! &lt;SPAN __jive_emoticon_name="happy" __jive_macro_name="emoticon" class="jive_emote jive_macro" data-renderedposition="8_221_16_16" src="https://www.servicenow.com/8.0.4.21bdc7e/images/emoticons/happy.png"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 29 Sep 2016 00:04:21 GMT</pubDate>
      <guid>https://www.servicenow.com/community/itom-forum/issue-firing-events-notifications-based-on-the-approval-table/m-p/914494#M19379</guid>
      <dc:creator>steve_au</dc:creator>
      <dc:date>2016-09-29T00:04:21Z</dc:date>
    </item>
    <item>
      <title>Re: Issue firing Events/Notifications based on the Approval table from Workflow</title>
      <link>https://www.servicenow.com/community/itom-forum/issue-firing-events-notifications-based-on-the-approval-table/m-p/914495#M19380</link>
      <description>&lt;P&gt;How did you end up getting this working? I have a similar need, but I can't find the right place in the workflow to place the&amp;nbsp;Run Script activity. Placing it before the Approval User step causes it to fail because there are no current approvals in the system and placing it after approval user step fails because the approval is already completed (or rejected). I also tried doing an advanced Approval User step and used the script there, which sort of worked, but the event still triggered from the table the workflow is built&amp;nbsp;on and not the sysapproval table.&amp;nbsp; &amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 17 Oct 2018 11:34:33 GMT</pubDate>
      <guid>https://www.servicenow.com/community/itom-forum/issue-firing-events-notifications-based-on-the-approval-table/m-p/914495#M19380</guid>
      <dc:creator>keithl22</dc:creator>
      <dc:date>2018-10-17T11:34:33Z</dc:date>
    </item>
    <item>
      <title>Re: Issue firing Events/Notifications based on the Approval table from Workflow</title>
      <link>https://www.servicenow.com/community/itom-forum/issue-firing-events-notifications-based-on-the-approval-table/m-p/914496#M19381</link>
      <description>&lt;P&gt;Hey Chuck,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Working on the same scenario&amp;nbsp;and&amp;nbsp;did what you have suggested&amp;nbsp;but event is still getting trigger from the table the workflow is built on i.e RITM.&lt;/P&gt;</description>
      <pubDate>Sat, 13 Jul 2019 08:57:29 GMT</pubDate>
      <guid>https://www.servicenow.com/community/itom-forum/issue-firing-events-notifications-based-on-the-approval-table/m-p/914496#M19381</guid>
      <dc:creator>Kushal9</dc:creator>
      <dc:date>2019-07-13T08:57:29Z</dc:date>
    </item>
    <item>
      <title>Re: Issue firing Events/Notifications based on the Approval table from Workflow</title>
      <link>https://www.servicenow.com/community/itom-forum/issue-firing-events-notifications-based-on-the-approval-table/m-p/914497#M19382</link>
      <description>&lt;P&gt;Hi Kushal,&lt;/P&gt;
&lt;P&gt;Can you describe what you're goal is? If it's an approval reminder, then I wouldn't recommend a workflow or scheduled job any more. That was state of the art a few years ago. As of July 2019, I recommend doing approval reminders via Flow Designer. Much easier to construct and maintain.&lt;/P&gt;</description>
      <pubDate>Mon, 15 Jul 2019 12:09:56 GMT</pubDate>
      <guid>https://www.servicenow.com/community/itom-forum/issue-firing-events-notifications-based-on-the-approval-table/m-p/914497#M19382</guid>
      <dc:creator>Chuck Tomasi</dc:creator>
      <dc:date>2019-07-15T12:09:56Z</dc:date>
    </item>
  </channel>
</rss>

