You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
However, I am a bit confused of what you're trying to achieve, could you provide more details please? Example query that doesn't work or smth like this?
Lookup field points to a field in another list, and usually that field is of type Text/Boolean/Number/etc., that is why CamlJs has ValueAsText(), ValueAsBoolean(), ValueAsNumber(), etc. for Lookup fields. I think it should cover all scenarios already.
And if you need the ID of the Lookup field, it is exposed through Id() and is generating type "Number", which is the most correct way to handle it.
You can find all kinds of incorrect queries in internet of course, and SharePoint handles those gracefully most of the time, but it's better to use correct queries because incorrect ones behave quirky sometimes, returning incorrect results in some cases. The only actual use case I know of where you really need Type="Lookup" is when doing list joins, but CamlJs handles that correctly, you can find an example in the documentation.
Hi there,
your library is awesome. But could you pls add ILookupFieldExpression as type Lookup? :)
The text was updated successfully, but these errors were encountered: