How to Get count if column has same values in entity list?

Hi Team,

I am querying entity records based on case number which is giving me output in Ilist entity variable and count of data in list is 5. list has one column named “Transfer Status” and Value should be “Success”. if all 5 record value in list is success i want to set one bool variable to true else false. I was trying to achieve this using LINQ query.

Can anyone please give this or tell me how to do this ?

Thanks in Advance.

Hi @deepakchawla

Try this LINQ expression:

isAllSuccess = entityList.All(Function(e) e.TransferStatus = "Success")

Hope it helps!!

Working fine.Thanks for your help

1 Like

You’re welcome @deepakchawla

Happy Automation!!

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.