JChanWorkskil
Canvas Initiate

Using Collection Operation - Exist on duplicate value in a collection

If there are duplicate values in a collection (e.g. Audi;BMW;Audi;Volkswagen), when using the Exists function in the Collection Operation action, which value does it return? - i.e does it return 0 or 2 when using Exist on the value Audi?

 

I am using SharePoint OnPrem.

 

Thanks,

Josh

0 Kudos
Reply
2 Replies
kchaluvadi
Workflow Veteran

Re: Using Collection Operation - Exist on duplicate value in a collection

I think its 0 (internally it would be traversing from first element in the collection, and would exit on first occurance of the string).

0 Kudos
Reply
kunalpatel
Automation Master
Automation Master

Re: Using Collection Operation - Exist on duplicate value in a collection

@JChanWorkskil you can log history for index using for loop & index variable.

0 Kudos
Reply