<?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>topic Re: Using Sense API to get notification when scheduled task fails in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Using-Sense-API-to-get-notification-when-scheduled-task-fails/m-p/2006643#M83299</link>
    <description>&lt;P&gt;can this use info for QlikView?&lt;/P&gt;</description>
    <pubDate>Fri, 18 Nov 2022 21:48:20 GMT</pubDate>
    <dc:creator>soporte_derevo</dc:creator>
    <dc:date>2022-11-18T21:48:20Z</dc:date>
    <item>
      <title>Using Sense API to get notification when scheduled task fails</title>
      <link>https://community.qlik.com/t5/App-Development/Using-Sense-API-to-get-notification-when-scheduled-task-fails/m-p/998527#M14685</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am looking for a way to hook into the Sense backend and attach a callback/event trigger, so I can get notified when for example certain reload tasks fail. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Looking at the API, there are a set of "Notification" endpoints, for example "&lt;A href="https://help.qlik.com/sense/2.0/en-US/developer/#../Subsystems/RepositoryServiceAPI/Content/RepositoryServiceAPI/RepositoryServiceAPI-Notification-Add-Change-Subscription.htm%3FTocPath%3DQlik%2520Sense%2520APIs%2520and%2520SDKs%7CQlik%2520Sense%2520Repository%2520Service%2520API%7CAPI%2520paths%7C_____49"&gt;Notification: Add change subscription&lt;/A&gt;". &lt;/P&gt;&lt;P&gt;Sounds very promising, but the docs are somewhat vague wrt what will trigger a notification. From what I understand, this API will trigger when conditions (add/update/delete) are met for certain properties of an entity (or several entities). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or should I set the reload task as the entity, then subscribe to a changed event for that entity, and finally look at what the change consists of?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think some trial and error is needed here, unless some API wiz can provide guidance...?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thx&lt;/P&gt;&lt;P&gt;Göran&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Sep 2015 06:00:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Using-Sense-API-to-get-notification-when-scheduled-task-fails/m-p/998527#M14685</guid>
      <dc:creator>mountaindude</dc:creator>
      <dc:date>2015-09-09T06:00:00Z</dc:date>
    </item>
    <item>
      <title>Re: Using Sense API to get notification when scheduled task fails</title>
      <link>https://community.qlik.com/t5/App-Development/Using-Sense-API-to-get-notification-when-scheduled-task-fails/m-p/998528#M14686</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;One way would be to subscribe to updates to ExecutionResult objects filtering on property status being FinishedFail, as below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;POST /qrs/notification?name=ExecutionResult&amp;amp;filter=status%20eq%20FinishedFail&amp;amp;changetype=Update&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Note that the body in the request above should be a double quoted URL, e.g. "&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://localhost:9876/notifyme" rel="nofollow"&gt;http://localhost:9876/notifyme&lt;/A&gt;&lt;SPAN&gt;". &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;The API documentation incorrectly states that you will get a GUID back. Instead, you will get a change info object back looking something like this:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;[{"id":"00000000-0000-0000-0000-000000000000","createdDate":"1753-01-01T00:00:00.000Z","modifiedDate":"1753-01-01T00:00:00.000Z","modifiedByUserName":"","changeType":2,"objectType":"ExecutionResult","objectID":"87c4d045-7841-4b55-8734-defd9a3f55f8","engineID":"","engineType":"","privileges":null,"schemaPath":"ExternalChangeInfo"}]&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ObjectID refers to the ID of the ExecutionResult object. To find out more about the task execution and which task that failed, you will need to query the API for the ExecutionResult object. Then, use t&lt;SPAN style="font-size: 13.3333px;"&gt;he ExecutionResult object's property taskID to fetch the task.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;GET /qrs/executionresult/87c4d045-7841-4b55-8734-defd9a3f55f8&lt;/PRE&gt;&lt;PRE&gt;GET /qrs/reloadtask/65e4a7af-c5fe-49c9-a79e-b5959f2af36b&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/Mattias&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Sep 2015 14:58:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Using-Sense-API-to-get-notification-when-scheduled-task-fails/m-p/998528#M14686</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-09-11T14:58:30Z</dc:date>
    </item>
    <item>
      <title>Re: Using Sense API to get notification when scheduled task fails</title>
      <link>https://community.qlik.com/t5/App-Development/Using-Sense-API-to-get-notification-when-scheduled-task-fails/m-p/1542131#M39117</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Did you test this on Postman ?&lt;/P&gt;</description>
      <pubDate>Mon, 11 Feb 2019 07:58:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Using-Sense-API-to-get-notification-when-scheduled-task-fails/m-p/1542131#M39117</guid>
      <dc:creator>pragya10</dc:creator>
      <dc:date>2019-02-11T07:58:18Z</dc:date>
    </item>
    <item>
      <title>Re: Using Sense API to get notification when scheduled task fails</title>
      <link>https://community.qlik.com/t5/App-Development/Using-Sense-API-to-get-notification-when-scheduled-task-fails/m-p/2006643#M83299</link>
      <description>&lt;P&gt;can this use info for QlikView?&lt;/P&gt;</description>
      <pubDate>Fri, 18 Nov 2022 21:48:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Using-Sense-API-to-get-notification-when-scheduled-task-fails/m-p/2006643#M83299</guid>
      <dc:creator>soporte_derevo</dc:creator>
      <dc:date>2022-11-18T21:48:20Z</dc:date>
    </item>
  </channel>
</rss>

