community
cancel
Showing results for 
Search instead for 
Did you mean: 

alteryx connect Discussions

Find answers, ask questions, and share expertise about Alteryx Connect.
Community v19.6

Looks aren't everything... But the latest Community refresh looks darn good!

Learn More
SOLVED

How easily can we extract Comments in Alteryx Connect where there isn't a asset owner?

Meteor

We are currently in the process of setting up a new data catalog in Alteryx Connect. Right now, the bulk of our database tables do not yet have their Owners specified. We are worried that people will start commenting and asking questions within Alteryx, but they won't get notified anywhere because the table doesn't have an owner.

 

I have the notifications set up so that I receive all updates that people make in Connect, so will pick up on this currently, but that won't be sustainable in the long run.

 

How can we extract the Comments? I tried exporting the page where the Comments had been added to out to Excel, but can't see the comments included there...??

Alteryx
Alteryx

Hi @JoTP ,

 

the only way how to extract the comments would be directly from the H2 database. All the comments are saved in the KOMMENT table. Using the XID field, it should be possible to assign them to the correct Asset. 

 

However, please be aware that direct access to the H2 database can cause performance issue in a case of a ineffective query or a query returning large amount of rows. 

Vojta T., PM for Connect
Highlighted
Alteryx
Alteryx

Correction. There is also another way - XML export of an entry. There you can find code like the one below.

 

And since you probably need to do it once for many assets, you can run the export on the parent, e.g. at "Business Glossary" level. 

Or, you can use Export in Administration. But please be aware that such export can be resource-demanding operation, especially if you run it for the whole Connect. Plus you can use "Export without history" to decrease the number of exported objects. 

 

However, you need to filter out objects without owner by yourself from the xml code.

 

<comment-thread>
<thread-xid>167dc766-eebe-4a93-8f45-02a7690f619e</thread-xid>
<entry-xid>6ee418a4-d34a-448d-a400-cbf1235773eb</entry-xid>
<thread-creation-date>1565776712340</thread-creation-date>
<thread-author-xid>superuser-admin</thread-author-xid>
<thread-author-name>Administrator</thread-author-name>
<thread-public>true</thread-public>
<comments>
<comment>
<comment-xid>34c6bbff-10f0-4786-b4ef-a9c1a18e9c4b</comment-xid>
<comment-author-xid>superuser-admin</comment-author-xid>
<comment-author-name>Administrator</comment-author-name>
<comment-creation-date>1565776712349</comment-creation-date>
<comment-text>&lt;p&gt;First comment&lt;/p&gt;</comment-text>
<comment-public>true</comment-public>
</comment>
<comment>
<comment-xid>63a0a12f-3055-4ed9-a018-0ca7aa584900</comment-xid>
<comment-author-xid>superuser-admin</comment-author-xid>
<comment-author-name>Administrator</comment-author-name>
<comment-creation-date>1565776728920</comment-creation-date>
<comment-text>&lt;p&gt;First response to the first comment.&lt;/p&gt;</comment-text>
<comment-public>true</comment-public>
</comment>
</comments>
</comment-thread>
<comment-thread>
<thread-xid>ff5a0d02-83c5-43ee-99c0-0614afc9f1ae</thread-xid>
<entry-xid>6ee418a4-d34a-448d-a400-cbf1235773eb</entry-xid>
<thread-creation-date>1565776734751</thread-creation-date>
<thread-author-xid>superuser-admin</thread-author-xid>
<thread-author-name>Administrator</thread-author-name>
<thread-public>true</thread-public>
<comments>
<comment>
<comment-xid>271c7f94-cc61-4296-82a3-f2e8a7417eeb</comment-xid>
<comment-author-xid>superuser-admin</comment-author-xid>
<comment-author-name>Administrator</comment-author-name>
<comment-creation-date>1565776734754</comment-creation-date>
<comment-text>&lt;p&gt;Second comment.&lt;/p&gt;</comment-text>
<comment-public>true</comment-public>
</comment>
</comments>
</comment-thread> 

 

Vojta T., PM for Connect
Meteor

I don't personally have those skills but good to know that is an option for us. Thanks