IOT Virtual Conference - Register now to book your ticket and get updates
x
CONGRATULATIONS! C# Corner Q1, 2021 MVPs Announced
Why Join
Become a member
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
C# Corner Home
Technologies
Monthly Leaders
ASK A QUESTION
Forumguidelines
Beavon Ondari
1.9k
40
40.5k
Filter all current users in SharePoint
Sep 25 2017 2:49 AM
Hello C# Corner!
My code below I am able to filter one logged in user, but what i want to filter all logged in users instead of one.
var Filter =
"?$filter=(UserName eq '"
+LogedinUser+
"') and (Status eq 'Open')"
;
getFilteredlist(
'Shared Folders'
, Filter ,function(spData)
{
fileArray = spData;
//Check Data
console.log(spData);
for
(k = 0; k < spData.length; k++)
{
var Library = spData[k].Relative_x0020_Path;
var FileID = spData[k].FileID;
var ListID = spData[k].ID;
var Filter1 =
"&$filter=ID eq '"
+FileID+
"'"
;
Getfilteredlibrarylist(Library, Filter1, ListID, function(resultsarray, LID)
{
dataArray[LID] = resultsarray;
t++;
});
}
});
Please anybody with helpful explanation or code, will be much appreciated. Thanks
Reply
Answers (
1
)
Unable to Deploy WSP in PROD WFE - WSP Deployment ISSUE
How To migrate workflows to online in Sharepoint?