Pass a context-variable [[@user.id]] in a [[@Web.QueryList...]]
AnsweredHow to pass the Context variable [[@user.id]] in a webquery?
I tried to pass the @user.id context variable in the where-clause of a webquery to lookup some data associated to the current user, but unfortunately it does not work.
When I run the same with a hardcoded value it works like a charm. It seems that passing the context-variable in a webquery doesn't work.
any suggestions?
0
-
Hi Jelle Dijkstra,
there is an out-of-the-box placeholder in CAML for the current user: <UserID/>
Just use it as described here: How to use User Name, User Id , Logged in User Id in SharePoint CAML Query - Ashok Raja's Blog
BR Matthias
0 -
Thanks Matthias Walter, sometimes it is that simple ;-)
0
Please sign in to leave a comment.
Comments
2 comments