Expand my Community achievements bar.

How to count number of CRCResults in list<CRCResult>?

Avatar

Level 2

I obtained the list<CRCResult> from GetContentSpace  operation. I need  to know ,how many files  are in the folder in ContentSpace (from wchich i've obtained list<CRCResult>). How should I figure it out? I tried  get-list-item-count  to count,for example, number of attributeMap in list, didn't work out.

Thanks in advance.

1 Reply

Avatar

Former Community Member

Hi!

I'm afraid I cannot answer as to how this is achieved through using the default operations within the Workbench processes, but it's quite simple if you were to make a custom component in Java to do this for you.

Given any List<CRCResult>, just call the .size() function and you'll get the count back.