<?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 Alteryx API - Run Length in Alteryx Server Discussions</title>
    <link>https://community.alteryx.com/t5/Alteryx-Server-Discussions/Alteryx-API-Run-Length/m-p/536911#M5878</link>
    <description>&lt;P&gt;Hello-&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a "run length" field in the api&amp;nbsp; or both a start_time and a end_time field that can be used to calculate "run length"?&amp;nbsp;&lt;/P&gt;&lt;P&gt;Using the API endpoint &lt;STRONG&gt;/admin/v1/workflows/jobs/&lt;/STRONG&gt;&amp;nbsp;,&amp;nbsp; I only can seem to see createDate field. I am missing a field that would show the end time.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am basically looking for this field shown below.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="run_length.png" style="width: 999px;"&gt;&lt;img src="https://community.alteryx.com/t5/image/serverpage/image-id/101315iB5C1C899FC582FB0/image-size/large?v=v2&amp;amp;px=999" role="button" title="run_length.png" alt="run_length.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help would be appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Matt&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 04 Mar 2020 13:39:05 GMT</pubDate>
    <dc:creator>matthewbechard</dc:creator>
    <dc:date>2020-03-04T13:39:05Z</dc:date>
    <item>
      <title>Alteryx API - Run Length</title>
      <link>https://community.alteryx.com/t5/Alteryx-Server-Discussions/Alteryx-API-Run-Length/m-p/536911#M5878</link>
      <description>&lt;P&gt;Hello-&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a "run length" field in the api&amp;nbsp; or both a start_time and a end_time field that can be used to calculate "run length"?&amp;nbsp;&lt;/P&gt;&lt;P&gt;Using the API endpoint &lt;STRONG&gt;/admin/v1/workflows/jobs/&lt;/STRONG&gt;&amp;nbsp;,&amp;nbsp; I only can seem to see createDate field. I am missing a field that would show the end time.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am basically looking for this field shown below.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="run_length.png" style="width: 999px;"&gt;&lt;img src="https://community.alteryx.com/t5/image/serverpage/image-id/101315iB5C1C899FC582FB0/image-size/large?v=v2&amp;amp;px=999" role="button" title="run_length.png" alt="run_length.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help would be appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Matt&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Mar 2020 13:39:05 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Alteryx-Server-Discussions/Alteryx-API-Run-Length/m-p/536911#M5878</guid>
      <dc:creator>matthewbechard</dc:creator>
      <dc:date>2020-03-04T13:39:05Z</dc:date>
    </item>
    <item>
      <title>Re: Alteryx API - Run Length</title>
      <link>https://community.alteryx.com/t5/Alteryx-Server-Discussions/Alteryx-API-Run-Length/m-p/538568#M5908</link>
      <description>&lt;P&gt;There's nothing in that API endpoint that I know of. What I do is build a workflow that pulls this data from my MongoDB instances that way I can get exactly what I want. I also recommend implementing the "Alteryx Server Usage Report" if you haven't seen it yet as it has a lot of great detail on your workflows.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 08 Mar 2020 13:00:58 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Alteryx-Server-Discussions/Alteryx-API-Run-Length/m-p/538568#M5908</guid>
      <dc:creator>joshuaburkhow</dc:creator>
      <dc:date>2020-03-08T13:00:58Z</dc:date>
    </item>
    <item>
      <title>Re: Alteryx API - Run Length</title>
      <link>https://community.alteryx.com/t5/Alteryx-Server-Discussions/Alteryx-API-Run-Length/m-p/538645#M5909</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.alteryx.com/t5/user/viewprofilepage/user-id/25793"&gt;@matthewbechard&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;a href="https://community.alteryx.com/t5/user/viewprofilepage/user-id/5339"&gt;@joshuaburkhow&lt;/a&gt;&amp;nbsp;is correct.&amp;nbsp; Currently the API does not report the completion time of a workflow run.&amp;nbsp; Also, as mentioned above, this information can be pulled from your MongoDB instance, on the AlteryxService database and in the AS_Queue and AS_Results tables. To find workflows run through the API, you will need to filter on the IsHidden field (set it to filter on True) in the AS_Queue collection.&amp;nbsp; Please note, if you have the functionality to allow users to run workflows without signing in, these will also be reported.&amp;nbsp; If this is the case, you can also add a filter to match the username to the the SubscriptionID that houses the workflows.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Attached is a sample workflow I use to get Run and Queue times for workflows running through the Gallery that you can use.&amp;nbsp; Just swap out the server name and passwords in the MongoDB Input tools&lt;/P&gt;</description>
      <pubDate>Sun, 08 Mar 2020 20:20:50 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Alteryx-Server-Discussions/Alteryx-API-Run-Length/m-p/538645#M5909</guid>
      <dc:creator>MattH</dc:creator>
      <dc:date>2020-03-08T20:20:50Z</dc:date>
    </item>
    <item>
      <title>Re: Alteryx API - Run Length</title>
      <link>https://community.alteryx.com/t5/Alteryx-Server-Discussions/Alteryx-API-Run-Length/m-p/539062#M5913</link>
      <description>&lt;P&gt;Thank you for your input!&lt;/P&gt;</description>
      <pubDate>Mon, 09 Mar 2020 16:35:21 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Alteryx-Server-Discussions/Alteryx-API-Run-Length/m-p/539062#M5913</guid>
      <dc:creator>matthewbechard</dc:creator>
      <dc:date>2020-03-09T16:35:21Z</dc:date>
    </item>
    <item>
      <title>Re: Alteryx API - Run Length</title>
      <link>https://community.alteryx.com/t5/Alteryx-Server-Discussions/Alteryx-API-Run-Length/m-p/539064#M5914</link>
      <description>&lt;P&gt;Matt -Thank you for your input....&amp;nbsp; I wanted to accept this answer as the solution, but I click accept by accident on another answer.&amp;nbsp; The mongo db flow gave me exactly what I was looking for.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks again,&lt;/P&gt;&lt;P&gt;Matt&lt;/P&gt;</description>
      <pubDate>Mon, 09 Mar 2020 16:37:50 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Alteryx-Server-Discussions/Alteryx-API-Run-Length/m-p/539064#M5914</guid>
      <dc:creator>matthewbechard</dc:creator>
      <dc:date>2020-03-09T16:37:50Z</dc:date>
    </item>
    <item>
      <title>Re: Alteryx API - Run Length</title>
      <link>https://community.alteryx.com/t5/Alteryx-Server-Discussions/Alteryx-API-Run-Length/m-p/1164729#M13802</link>
      <description>&lt;P&gt;&lt;a href="https://community.alteryx.com/t5/user/viewprofilepage/user-id/187"&gt;@MattH&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hi Matt - in the Mongo data, how can you tell difference between a job that was run manually vs one that was truly scheduled?&lt;/P&gt;</description>
      <pubDate>Wed, 19 Jul 2023 21:04:12 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Alteryx-Server-Discussions/Alteryx-API-Run-Length/m-p/1164729#M13802</guid>
      <dc:creator>bertal34</dc:creator>
      <dc:date>2023-07-19T21:04:12Z</dc:date>
    </item>
    <item>
      <title>Re: Alteryx API - Run Length</title>
      <link>https://community.alteryx.com/t5/Alteryx-Server-Discussions/Alteryx-API-Run-Length/m-p/1240813#M15017</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.alteryx.com/t5/user/viewprofilepage/user-id/187"&gt;@MattH&lt;/a&gt;, The workflow you provided has a dependency on&amp;nbsp;C:\Users\kcunningham\Documents\UsageReporting2\blobInput.yxdb&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So it doesn't run. Any help on this?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 14 Feb 2024 20:14:45 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Alteryx-Server-Discussions/Alteryx-API-Run-Length/m-p/1240813#M15017</guid>
      <dc:creator>dheissner</dc:creator>
      <dc:date>2024-02-14T20:14:45Z</dc:date>
    </item>
    <item>
      <title>Re: Alteryx API - Run Length</title>
      <link>https://community.alteryx.com/t5/Alteryx-Server-Discussions/Alteryx-API-Run-Length/m-p/1240822#M15018</link>
      <description>&lt;P&gt;You've probably already found this, but one of the columns coming out of AS_Queue is AS_Schedules__ID.&amp;nbsp; If a workflow is being run from a schedule, this column will be populated with the MongoDB _id of that schedule.&amp;nbsp; If it is blank, then it is a manual Gallery run.&lt;/P&gt;</description>
      <pubDate>Wed, 14 Feb 2024 20:28:15 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Alteryx-Server-Discussions/Alteryx-API-Run-Length/m-p/1240822#M15018</guid>
      <dc:creator>MattH</dc:creator>
      <dc:date>2024-02-14T20:28:15Z</dc:date>
    </item>
    <item>
      <title>Re: Alteryx API - Run Length</title>
      <link>https://community.alteryx.com/t5/Alteryx-Server-Discussions/Alteryx-API-Run-Length/m-p/1240833#M15019</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.alteryx.com/t5/user/viewprofilepage/user-id/258934"&gt;@dheissner&lt;/a&gt;, The&amp;nbsp;&lt;SPAN&gt;C:\Users\kcunningham\Documents\UsageReporting2\&lt;/SPAN&gt;&lt;SPAN&gt;blobInput.yxdb dependency can be ignored.&amp;nbsp; The file was used to create the macro input schema for ServiceDataPaerser macro, which should persist without that file.&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In our 2023.2 release of Alteryx Server, we removed the ServiceBlob from most of the MongoDB collections and directly output the contents to the collection.&amp;nbsp; If you are running Server 2023.2, this could be the reason for an error in the workflow.&amp;nbsp; You can simply delete the macro and connect around.&lt;/P&gt;</description>
      <pubDate>Wed, 14 Feb 2024 20:57:00 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Alteryx-Server-Discussions/Alteryx-API-Run-Length/m-p/1240833#M15019</guid>
      <dc:creator>MattH</dc:creator>
      <dc:date>2024-02-14T20:57:00Z</dc:date>
    </item>
    <item>
      <title>Re: Alteryx API - Run Length</title>
      <link>https://community.alteryx.com/t5/Alteryx-Server-Discussions/Alteryx-API-Run-Length/m-p/1240839#M15020</link>
      <description>&lt;P&gt;Attached is an updated version for 2023.2 which no longer uses the macro.&amp;nbsp; I've also set it to pull out all fields from the collections.&lt;/P&gt;</description>
      <pubDate>Wed, 14 Feb 2024 21:09:35 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Alteryx-Server-Discussions/Alteryx-API-Run-Length/m-p/1240839#M15020</guid>
      <dc:creator>MattH</dc:creator>
      <dc:date>2024-02-14T21:09:35Z</dc:date>
    </item>
  </channel>
</rss>

