You are viewing limited content. For full access, please sign in.

Question

Question

Workflow to show duplicate values in a field

asked on November 9, 2016 Show version history

Hi All,

 

Is there a way to check for a duplicate value of a given field for all entries in the repository? 

0 0

Answer

SELECTED ANSWER
replied on November 9, 2016

I would do a custom query on the repository (see screenshot)

You need to find out what the property ID of the field value you are interested in is (in the prop_val table in the repository database).

duplicatequery.png
0 0

Replies

replied on November 9, 2016

How about checking the count from a search against that field ?

0 0
replied on November 9, 2016

Hi Dane.

I think that is not possible .

Why exactly do you need that info?

If the answers is want to know that info to delete the data duplicate of the meta-field 

and also you know what entry is , you can use this ....

I attached a video with the steps, I hope it works for you or you can use a variant and add a search and a for each entry node.

Regards!!

0 0
replied on November 9, 2016

Are you trying to find all documents where a given multi-value field has 2 or more duplicated values? Or, given a document and a field on that document, are you trying all documents with the same field value?

0 0
replied on November 9, 2016

Given a document and a field on that document, I would like to find all documents with the same field value.  For example, I would like to see if I have duplicated invoices in the repository by seeing if there are two documents with the same number in the invoice number field. 

0 0
replied on November 9, 2016

And are you looking for all values that are duplicates or trying to find if a particular value is duplicated ?

0 0
replied on November 9, 2016

I would like to find all values that are duplicates

0 0
SELECTED ANSWER
replied on November 9, 2016

I would do a custom query on the repository (see screenshot)

You need to find out what the property ID of the field value you are interested in is (in the prop_val table in the repository database).

duplicatequery.png
0 0
replied on November 9, 2016

Hi Again Dane  do you try to do a seach query on workflow to get that info?

I attached a video with the info. 

After do the search you can do what you need with the entries.

 

SeachQuery.mp4 (4.66 MB)
1 0
replied on November 9, 2016

You could just run a search.

1 0
replied on November 9, 2016

Hi Dane,

I think you have two options:

If you have a document and you want to find if any other documents have the same invoice number, Miruna and David have shown that a search will do the trick.

If you want to find all duplicated invoice numbers in the repository, you can use the custom query.

0 0
replied on November 9, 2016

Thank you all for your help.  I believe the custom query will best suit my needs

0 0
You are not allowed to follow up in this post.

Sign in to reply to this post.