developer
1592 TopicsSharepoint view level permissions
Hello, I’m facing an issue in SharePoint. I have a main list where I need to create two views one for “A” users and another for “B” users. What should change is, for example, that “A” users can only see column “A” and “B” users can only see column “B”. And being sensitive data, they shouldn't be able see each other's columns. Using different lists is the only viable way I currently see this working, which i don't really want since this requires a lot more of work, unless someone can suggest a better solution. Note that currently I'm using two different pages inside the same website for user's "A" and "B". Thank you very much.11Views1like0CommentsPNP Search Results sort by title
Hi. I have a PNP Search results webpart, that brings me all the Document Libraries in SharePoint site (that are not the standard ones Like site assets, pages etc) I want the results to be sorted, but i tried with sort column and it does not work, I want it to show in alphabetical order If i use "edit sort order" and select by title, it gives me an error I added a RefinableString where i have the title but it is still not sorting it How can i get this list sorted without having to add another column for the Title (with out the link) THank you24Views0likes0CommentsCSOM: My “one query to rule them all” plan backfired — got “Request uses too many resources” 😅
Hey folks, So I’ve been playing around with CSOM (Client-Side Object Model), feeling fancy about making one super-efficient query that loads everything I need at once. Something like this: clientContext.Load( clientContext.Web, w => w.SiteUsers.Include(...), w => w.Lists.Include(...), w => w.SiteGroups.Include(...) ); Basically, my thought was: “Why make multiple calls when I can just get everything in one go?” But CSOM had other plans. Instead of being impressed, it hit me with the dreaded: "Request uses too many resources." Even when I tried to be nice and limit the properties, it still said “Nope.” 🙃 So now I’m wondering: Is it actually more efficient (and safer) to create a new ClientContext for each object I want to query (like Web, SiteUsers, Lists, etc.)? Or am I just thinking about this the wrong way and missing some batching trick? Would love to hear how others handle this — or if there’s a secret sauce to making CSOM not freak out when you ask for too much.9Views0likes0CommentsCSOM batch request: “Request uses too many resources” when loading multiple sites with GetSiteByUrl
I’m currently exploring CSOM (Client-Side Object Model) and analyzing how property values for client objects such as Web and Site are requested and returned in XML format. I used Fiddler to inspect the request and response bodies. I’m now trying to implement a batch-based query where I load multiple sites with a limited set of properties using the GetSiteByUrl method. However, I’m running into this issue: When I load 10 sites, I get the error: “Request uses too many resources.” When I reduce the number to 8 sites, it works fine. I also compared the bytes sent and bytes received for different batch sizes (screenshot attached). So my question is: Is there a specific limitation on the total request size (bytes sent/received) or number of operations in a single CSOM batch request? If yes, is there any official documentation or guidance on how to determine these limits? Thanks in advance!25Views0likes0CommentsClarification on StorageQuota and BonusStorageQuotaMb in SharePoint Online (CSOM / PowerShell)
I’ve been using CSOM and the Get-SPOTenant PowerShell cmdlet to retrieve storage-related data for my SharePoint Online tenant. I noticed that the StorageQuota property accurately reflects the total storage available. However, I plan to purchase additional SharePoint Online storage and would like to clarify: Will the newly purchased additional storage be included in the value returned by the StorageQuota property? I also came across another property called BonusStorageQuotaMB which does not have any documention and seems like new one too— could someone please explain its purpose and how it differs from StorageQuota? Understanding how these properties behave is important for me to monitor and report tenant storage accurately. Thanks in advance for your insights!41Views0likes0CommentsHow to set a field column of type person for a folder in Sharepoint via the REST API
On Sharepoint I create a column of type person/group (lets say "projectlead"). Now I want to create folders and after the creation I want to set this column via the graph api. I already tested this with a column of type text (single line) successfully via: POST https://{{tenant_url}}/sites/{{site}}/_api/web/lists/getbytitle('Dokumente')/items({{ItemId}})/ValidateUpdateListItem() header: Accept: application/json;odata=verbose Content-Type: application/json;odata=verbose body: { "formValues": [ { "FieldName": "projectlead", "FieldValue": "someUserIdOrName" } ], "bNewDocumentUpdate": false } I heard that it is not possible for folders, but couldn't finde anything specific about it. Is it possible and if, how? I tried several things, but nothing worked for me.17Views0likes0CommentsRefinableStrings managed properties are assigned to crawl properties only at the site level
I accessed the managed properties at a site level scope inside SharePoint online, and I found some refinable strings assign to crawl properties, but when I accessed the same refinable strings at the tenant level i found that those managed properties do not have crawl properties assign to them, here is a example for RefinableString06:- Site level Tenant Level Also the confusing issue is that inside the UI the ability to assign crawl properties to those managed properties are disabled on the site level, so how those got assigned?60Views0likes3CommentsCreating SharePoint Intranet from scratch - What would you do?
Hello, I've just started at a new company and they desperately need an intranet created for the purpose of communication (announcements, etc.) and document management. The company I came from had already begun their design and development journey with a particular vendor prior to me being onboarded there. They mostly used out-of-the-box functionality with a bit of custom development for some things. It was a Classic site. This vendor did fine work but I am overall curious which direction you'd go given the opportunity to do it from scratch; either using any vendor you want and/or developing it yourself and the resources you'd use to accomplish that. I've of course Googled this myself but any direction or insight is greatly appreciated! Thank you, Morghan2.2KViews0likes5CommentsAI- based Post Sorting
I have developed a Post and Comment module inside SPFx. where i have 3 sharepoint list:- Posts Comments Reaction here is the SPFX, with 2 posts and the first post has 2 comments:- Currently the Posts and their Comments will be shown sorted by the created date , here is the method to show the posts:- async getPostsPage(pageSize: number = 10, afterId?: number) { let url = `${this.siteUrl}/_api/web/lists/getByTitle('SocialPosts')/items` + `?$select=Id,Title,Body,Created,Author/Id,Author/Title,LikeCount,CommentCount` + `&$expand=Author&$orderby=Id desc&$top=${pageSize}`; if (afterId) url += `&$filter=Id lt ${afterId}`; const data = await this.getJson<{ value: any[] }>(url); return data.value.map(v => ({ Id: v.Id, Title: v.Title, Body: v.Body, Created: v.Created, AuthorId: v.Author?.Id, AuthorTitle: v.Author?.Title, LikeCount: v.LikeCount || 0, CommentCount: v.CommentCount || 0 })) as import('../Models/Models').Post[]; } and the comments:- // ---------- Comments ---------- async getComments(postId: number): Promise<Comment[]> { const url = this.commentsUrl() + `?$select=Id,Body,Created,Author/Id,Author/Title,LikeCount,Post/Id,PostId` + `&$expand=Author,Post&$filter=PostId eq ${postId}&$orderby=Created asc`; const data = await this.getJson<{ value: any[] }>(url); return data.value.map((v) => ({ Id: v.Id, Body: v.Body, Created: v.Created, AuthorId: v.Author?.Id, AuthorTitle: v.Author?.Title, LikeCount: v.LikeCount || 0, PostId: v.PostId ?? v.Post?.Id, })); } but the client is asking us if there is a way to order the items using AI algorithm so it show the most relevant posts and comments first? which approach i can follow? to allow order items inside SPFx using AI algorithm instead of Created date?? any advice?28Views0likes0CommentsHow to make News Post notification from SharePoint to Teams work?
Hi, I need help to make the notifications from news post work. I am experiencing issues where not all employees receive a notification in Teams when a new news post is published in SharePoint Online. From what I understand, it does not matter whether employees are following a site or not. I would like to ensure that everyone receives a notification every time.87Views0likes2Comments