Filter Documents from List with an element Id

Hi wmUsers,

I have a scenario where i need to separate certain documents from Doclist. Criteria is based on a field in document which is repeatitive , i need to seperate them. For ex:

Doc[0]:
FieldA:100
FieldB:abc
FieldC:wqeqw

Doc[1]:
FieldA:101
FieldB:abc
FieldC:32qqew

Doc[2]:
FieldA:100
FieldB:fafdaf
FieldC:iuiuii

Doc[3]:
FieldA:102
FieldB:abc
FieldC:wqeqw

Doc[1]:
FieldA:101
FieldB:trttr
FieldC:pipioioi

Result:-------- (Three sets of documents)

First Set:—
Doc1[0]:
FieldA:100
FieldB:abc
FieldC:wqeqw

Doc1[1]:
FieldA:100
FieldB:fafdaf
FieldC:iuiuii

Second Set:—
Doc2[0]:
FieldA:101
FieldB:abc
FieldC:32qqew

Doc2[1]:
FieldA:101
FieldB:trttr
FieldC:pipioioi

Third Set:----
Doc3[0]:
FieldA:102
FieldB:abc
FieldC:wqeqw

Kindly suggest an efficient way to do it. Thanks in advance…

Regards,
Niteesh:)

Sorry to disturb. I got the solution by using WmPublic/pub.document:groupDocuments.

Cheers,
Niteesh

I tried to use this flow but it doesn’t seem to work. I passed a document list as input and also gave the key,(a path from the input document list with pipeline variable substitution. )

Hi swetha,

          Try without providing the key as full path. Give the simple variable name. Example "Employee/Address/HNo"

In this case Key is “HNo” only.

Hi Venu,
Thanks for your input. I was giving the whole path and it did not work. I gave only the key as you suggested and it worked.

Good…