isof in any filter #1445
-
Hi, I'm trying to use isof in an any filter, however the isof applies to the main query rather than the sub query. https://localhost:7102/odata/tenant/hierarchyheaders?$expand=metrics,children&$filter=children/any(children: isof('Edm.Tenant.CusItm')) SELECT [h].[Id], [h].[Code], [h].[CreatedDateTime], [h].[CreatedUser], [h].[Discriminator], [h].[Identifier], [h].[ParentId], [h].[Reference], [h].[ReferenceDate], [h1].[Id], [h1].[AmendmentID], [h1].[AmendmentParentID], [h1].[Code], [h1].[CreatedDateTime], [h1].[CreatedUser], [h1].[HierarchyHeaderId], [h1].[ValueAmount], [h1].[ValueDataCode], [h1].[ValueDateTime], [h1].[ValueInteger], [h1].[ValueLanguage], [h1].[ValueText], [h1].[Version], [h2].[Id], [h2].[Code], [h2].[CreatedDateTime], [h2].[CreatedUser], [h2].[Discriminator], [h2].[Identifier], [h2].[ParentId], [h2].[Reference], [h2].[ReferenceDate] Nearly, but not quite. Needs to be (notice the h0): Is there any way to use the isof function in an any filter? Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
@AndrewZenith just to see if I understand the question, is what you're saying that |
Beta Was this translation helpful? Give feedback.
-
@AndrewZenith Try |
Beta Was this translation helpful? Give feedback.
@AndrewZenith Try
$filter=children/any(child:isof(child,Edm.Tenant.Cusltm))