<?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: Tracking all workflow additions to an Alteryx collection in Alteryx Server Discussions</title>
    <link>https://community.alteryx.com/t5/Alteryx-Server-Discussions/Tracking-all-workflow-additions-to-an-Alteryx-collection/m-p/1253666#M15172</link>
    <description>&lt;P&gt;Thank you so much,&amp;nbsp;&lt;a href="https://community.alteryx.com/t5/user/viewprofilepage/user-id/15312"&gt;@fmvizcaino&lt;/a&gt;,&amp;nbsp;this is perfect!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Just to make sure, for my audit requirement, I only need the entries where the NewValues starts with&amp;nbsp;{"apps" and the audit event is either "Insert" or "Update", correct?&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 21 Mar 2024 14:47:56 GMT</pubDate>
    <dc:creator>SBK</dc:creator>
    <dc:date>2024-03-21T14:47:56Z</dc:date>
    <item>
      <title>Tracking all workflow additions to an Alteryx collection</title>
      <link>https://community.alteryx.com/t5/Alteryx-Server-Discussions/Tracking-all-workflow-additions-to-an-Alteryx-collection/m-p/1253310#M15167</link>
      <description>&lt;P&gt;Hi team,&lt;/P&gt;&lt;P&gt;For audit reasons, I need to extract all records of users who added a workflow to a given collection, sort of an audit log to ensure developers are not adding unapproved apps to prod collections. I'm using MongoDB but I'm not sure where to find this data.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am able to locate collections on one hand, and all revisions of a an application on the other, but I can't link the two. Can you please advise?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Thu, 21 Mar 2024 11:31:54 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Alteryx-Server-Discussions/Tracking-all-workflow-additions-to-an-Alteryx-collection/m-p/1253310#M15167</guid>
      <dc:creator>SBK</dc:creator>
      <dc:date>2024-03-21T11:31:54Z</dc:date>
    </item>
    <item>
      <title>Re: Tracking all workflow additions to an Alteryx collection</title>
      <link>https://community.alteryx.com/t5/Alteryx-Server-Discussions/Tracking-all-workflow-additions-to-an-Alteryx-collection/m-p/1253629#M15171</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.alteryx.com/t5/user/viewprofilepage/user-id/387285"&gt;@SBK&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You have the option to use the Gallery APIs or MongoDB. In both cases, you will access the AuditEvents collection.&lt;/P&gt;&lt;P&gt;&lt;A href="https://help.alteryx.com/20221/en/server/configure/mongodb-management/mongodb-schema-reference/alteryxgallery-mongodb-schema.html#idm46311660062208" target="_blank"&gt;https://help.alteryx.com/20221/en/server/configure/mongodb-management/mongodb-schema-reference/alteryxgallery-mongodb-schema.html#idm46311660062208&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The entity you are looking for is Collection.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You would see something like this as a result.&lt;/P&gt;&lt;P&gt;{&lt;BR /&gt;"entity": "Collection",&lt;BR /&gt;"entityId": "65fc3ce5771b145bea8afa0b",&lt;BR /&gt;"userId": "654b029b2d7ab4a3518621ad",&lt;BR /&gt;"timestamp": "2024-03-21T13:58:16.362Z",&lt;BR /&gt;"event": "update",&lt;BR /&gt;"oldValues": "{\"apps\":[]}",&lt;BR /&gt;"newValues": "{\"apps\":[{\"appId\":\"654b041f2d7ab4a35186222f\",\"dateAdded\":\"2024-03-21T13:58:16.3581254Z\",\"addedById\":\"654b029b2d7ab4a3518621ad\"}]}",&lt;BR /&gt;"id": "65fc3cf8771b145bea8afa10"&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The appId is the workflowId.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Additional references:&lt;/P&gt;&lt;P&gt;&lt;A href="https://help.alteryx.com/current/en/server/api-overview/alteryx-server-api-v1/auditlog-endpoint.html" target="_blank"&gt;https://help.alteryx.com/current/en/server/api-overview/alteryx-server-api-v1/auditlog-endpoint.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://knowledge.alteryx.com/index/s/article/How-to-determine-which-User-deleted-a-Gallery-application" target="_blank"&gt;https://knowledge.alteryx.com/index/s/article/How-to-determine-which-User-deleted-a-Gallery-application&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;Fernando Vizcaino&lt;/P&gt;</description>
      <pubDate>Thu, 21 Mar 2024 14:06:04 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Alteryx-Server-Discussions/Tracking-all-workflow-additions-to-an-Alteryx-collection/m-p/1253629#M15171</guid>
      <dc:creator>fmvizcaino</dc:creator>
      <dc:date>2024-03-21T14:06:04Z</dc:date>
    </item>
    <item>
      <title>Re: Tracking all workflow additions to an Alteryx collection</title>
      <link>https://community.alteryx.com/t5/Alteryx-Server-Discussions/Tracking-all-workflow-additions-to-an-Alteryx-collection/m-p/1253666#M15172</link>
      <description>&lt;P&gt;Thank you so much,&amp;nbsp;&lt;a href="https://community.alteryx.com/t5/user/viewprofilepage/user-id/15312"&gt;@fmvizcaino&lt;/a&gt;,&amp;nbsp;this is perfect!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Just to make sure, for my audit requirement, I only need the entries where the NewValues starts with&amp;nbsp;{"apps" and the audit event is either "Insert" or "Update", correct?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Mar 2024 14:47:56 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Alteryx-Server-Discussions/Tracking-all-workflow-additions-to-an-Alteryx-collection/m-p/1253666#M15172</guid>
      <dc:creator>SBK</dc:creator>
      <dc:date>2024-03-21T14:47:56Z</dc:date>
    </item>
    <item>
      <title>Re: Tracking all workflow additions to an Alteryx collection</title>
      <link>https://community.alteryx.com/t5/Alteryx-Server-Discussions/Tracking-all-workflow-additions-to-an-Alteryx-collection/m-p/1253669#M15173</link>
      <description>&lt;P&gt;That`s exactly right!&lt;/P&gt;</description>
      <pubDate>Thu, 21 Mar 2024 14:50:22 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Alteryx-Server-Discussions/Tracking-all-workflow-additions-to-an-Alteryx-collection/m-p/1253669#M15173</guid>
      <dc:creator>fmvizcaino</dc:creator>
      <dc:date>2024-03-21T14:50:22Z</dc:date>
    </item>
    <item>
      <title>Re: Tracking all workflow additions to an Alteryx collection</title>
      <link>https://community.alteryx.com/t5/Alteryx-Server-Discussions/Tracking-all-workflow-additions-to-an-Alteryx-collection/m-p/1253685#M15174</link>
      <description>&lt;P&gt;Thank you. I'm looking at the logs, and I see some "Update "entries have Newvalues as "{"@@ Count":2}}".&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Would those be deletions? If not, any idea what they mean please?&lt;/P&gt;</description>
      <pubDate>Thu, 21 Mar 2024 15:13:43 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Alteryx-Server-Discussions/Tracking-all-workflow-additions-to-an-Alteryx-collection/m-p/1253685#M15174</guid>
      <dc:creator>SBK</dc:creator>
      <dc:date>2024-03-21T15:13:43Z</dc:date>
    </item>
    <item>
      <title>Re: Tracking all workflow additions to an Alteryx collection</title>
      <link>https://community.alteryx.com/t5/Alteryx-Server-Discussions/Tracking-all-workflow-additions-to-an-Alteryx-collection/m-p/1253710#M15176</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.alteryx.com/t5/user/viewprofilepage/user-id/387285"&gt;@SBK&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I did some tests and all inserts and deletions of workflows from collections generate an &lt;STRONG&gt;update&lt;/STRONG&gt; log. So we are learning together here :)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What I have noticed is that you need to pay attention to both old and new values and the difference between both means that a workflow was added or deleted.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For example, here I deleted the workflowID&amp;nbsp;&lt;STRONG&gt;654b04432d7ab4a35186226b&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;{&lt;BR /&gt;"entity": "Collection",&lt;BR /&gt;"entityId": "65fc3ce5771b145bea8afa0b",&lt;BR /&gt;"userId": "654b029b2d7ab4a3518621ad",&lt;BR /&gt;"timestamp": "2024-03-21T15:37:34.735Z",&lt;BR /&gt;"event": "update",&lt;BR /&gt;"oldValues": "{\"apps\":{\"1\":{\"appId\":\"&lt;STRONG&gt;654b04432d7ab4a35186226b&lt;/STRONG&gt;\",\"dateAdded\":\"2024-03-21T15:37:13.122Z\",\"addedById\":\"654b029b2d7ab4a3518621ad\"},\"@@ Count\":2}}",&lt;BR /&gt;"newValues": "{\"apps\":{\"@@ Count\":1}}",&lt;BR /&gt;"id": "65fc543e771b145bea8b0257"&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here I also deleted a workflow. &lt;STRONG&gt;WorkflowID&amp;nbsp;654b041f2d7ab4a35186222f&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;{&lt;BR /&gt;"entity": "Collection",&lt;BR /&gt;"entityId": "65fc5843771b145bea8b03e1",&lt;BR /&gt;"userId": "654b029b2d7ab4a3518621ad",&lt;BR /&gt;"timestamp": "2024-03-21T15:55:34.293Z",&lt;BR /&gt;"event": "update",&lt;BR /&gt;"oldValues": "{\"apps\":{\"0\":{\"appId\":\"&lt;STRONG&gt;654b041f2d7ab4a35186222f&lt;/STRONG&gt;\",\"dateAdded\":\"2024-03-21T15:54:48.877Z\"},\"1\":{\"appId\":\"654b04372d7ab4a35186225e\",\"dateAdded\":\"2024-03-21T15:54:52.763Z\",\"addedById\":\"654b029b2d7ab4a3518621ad\"},\"@@ Count\":2}}",&lt;BR /&gt;"newValues": "{\"apps\":{\"0\":{\"appId\":\"654b04372d7ab4a35186225e\",\"dateAdded\":\"2024-03-21T15:54:52.763Z\"},\"@@ Count\":1}}",&lt;BR /&gt;"id": "65fc5876771b145bea8b03ee"&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here I added the workflowID&amp;nbsp;&lt;STRONG&gt;654b04372d7ab4a35186225e&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;{&lt;BR /&gt;"entity": "Collection",&lt;BR /&gt;"entityId": "65fc5843771b145bea8b03e1",&lt;BR /&gt;"userId": "654b029b2d7ab4a3518621ad",&lt;BR /&gt;"timestamp": "2024-03-21T15:54:52.763Z",&lt;BR /&gt;"event": "update",&lt;BR /&gt;"oldValues": "{\"apps\":{\"@@ Count\":1}}",&lt;BR /&gt;"newValues": "{\"apps\":{\"1\":{\"appId\":\"&lt;STRONG&gt;654b04372d7ab4a35186225e&lt;/STRONG&gt;\",\"dateAdded\":\"2024-03-21T15:54:52.7636707Z\",\"addedById\":\"654b029b2d7ab4a3518621ad\"},\"@@ Count\":2}}",&lt;BR /&gt;"id": "65fc584c771b145bea8b03ea"&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The bottom line is that you always have to check the count in both new and old values to know if a workflow is being added or deleted. I`m not sure why sometimes Alteryx shows all IDs and sometimes it doesn`t, but I`d say you will always have to compare the Ids to see what is missing/deleted.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;Fernando Vizcaino&lt;/P&gt;</description>
      <pubDate>Thu, 21 Mar 2024 16:03:15 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Alteryx-Server-Discussions/Tracking-all-workflow-additions-to-an-Alteryx-collection/m-p/1253710#M15176</guid>
      <dc:creator>fmvizcaino</dc:creator>
      <dc:date>2024-03-21T16:03:15Z</dc:date>
    </item>
    <item>
      <title>Re: Tracking all workflow additions to an Alteryx collection</title>
      <link>https://community.alteryx.com/t5/Alteryx-Server-Discussions/Tracking-all-workflow-additions-to-an-Alteryx-collection/m-p/1256187#M15209</link>
      <description>&lt;P&gt;Thank you, this really helped. It also inspired me to do my own bit of testing, and I came to the below conclusions:&lt;/P&gt;&lt;P&gt;- The insert/delete event only shows if a new collection is added or deleted. Everything else that is workflow related is an update.&lt;/P&gt;&lt;P&gt;- Adding or removing workflows to a collection results in a count change between the old and the new value.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Example: If you delete a workflow, "@@ Count":2} becomes "@@ Count":1}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I still have to decode the Newvalues field to extract the different columns, but sharing in case it helps someone.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks again for your help&amp;nbsp;&lt;a href="https://community.alteryx.com/t5/user/viewprofilepage/user-id/15312"&gt;@fmvizcaino&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 28 Mar 2024 15:19:02 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Alteryx-Server-Discussions/Tracking-all-workflow-additions-to-an-Alteryx-collection/m-p/1256187#M15209</guid>
      <dc:creator>SBK</dc:creator>
      <dc:date>2024-03-28T15:19:02Z</dc:date>
    </item>
  </channel>
</rss>

