# Finding All Groups in a Database

**URL:** https://discourse.devontechnologies.com/t/finding-all-groups-in-a-database/71113
**Category:** Automation
**Tags:** automation
**Created:** [May 21, 2022, 9:27pm UTC](https://discourse.devontechnologies.com/t/finding-all-groups-in-a-database/71113 "2022-05-21T21:27:35Z")
**Posts on this page:** 1
**Showing post:** 12

<div class="post-metadata">

### Author: ![cgrunenberg](https://discourse.devontechnologies.com/user_avatar/discourse.devontechnologies.com/cgrunenberg/32/7172_2.png) [@cgrunenberg](https://discourse.devontechnologies.com/u/cgrunenberg)
#### Post date: [August 11, 2022, 2:38pm UTC](https://discourse.devontechnologies.com/t/finding-all-groups-in-a-database/71113/12 "2022-08-11T14:38:08Z")

</div>

And this will make (slow) workarounds used in scripts like the following ones obsolete:

> [@Putting AI better to work: Moving the item to a Document suggestion](https://discourse.devontechnologies.com/t/putting-ai-better-to-work-moving-the-item-to-a-document-suggestion/61190/4):
>
> Yes, this script does it. However we can’t get the exact same result as displayed in the See Also Inspector because As compare record only compares to the record’s database we have to use compare content which means the script can’t compare images, it needs records with text. This script shows a choose from list with See Also suggestions’ parent groups moves the selected record to the chosen group Properties maxLength: truncate group names at truncateEnd: truncate end instead of midd…

> [@Trying to compare record to a given database](https://discourse.devontechnologies.com/t/trying-to-compare-record-to-a-given-database/24727/22):
>
> I’m trying to compare with record instead of content but it only returns results of the current database. tell application id "DNtp" try set theRecords to selection of viewer window 1 if theRecords = {} then error "Nichts ausgewählt." set thisRecord to item 1 of theRecords set theDatabases to databases set allSeeAlsoResults to {} repeat with thisDatabase in theDatabases #set theContent to plain text of thisRecord #set theResults to compare content theContent to this…

> [@How to export the results list for the "See also & Classify" command](https://discourse.devontechnologies.com/t/how-to-export-the-results-list-for-the-see-also-classify-command/58661/12):
>
> No, I will just copy and past this list in a sample e-mail. This is an example the way I do it. I took an image os results Then I wrote the titles (as @cgrunenberg suggest) Then I wrote the first paragraph (to have an ideia about the context of this text) Finally I wrote the last paragraph (that refers to biography)

E.g. a test revision of _Markdown See Also_ (see support assistant) is much faster and the results are identical to the inspector.

---

_[View the full topic](https://discourse.devontechnologies.com/t/finding-all-groups-in-a-database/71113)._
