I am trying to execute the following line in SpEL but it does not work:
FileAttachments.?{DownloadedPath.Contains('CMA')}.count()>0
Where FileAttachments
is a list of objects of class FileAttachment
whose property is DownloadedPath
.
Basically I am trying to check if any FileAttachment
's DownloadedPath
property contains "CMA".
But it returns with an error:
Selection can only be used on an instance of the type that implements IEnumerable.