wrote:
Hi Miguel,
So what exactly do you want to know then? Do you need the count, or only whether any of the types are present?
I want to know if any documents have a certain status, but retrieving only one value.
If at least 1 document have the status 'Submited' return 1 (for example)
Else If at least 1 document have status 'Completed' return 2
Else return 3.
The exact value of the count isn't important since I only want to know if it's gratter than 0.