Microsoft365
176 TopicsRename and Relink "SharePoint" which is on M365 Suite Bar on whole Site
Hi, The Top left corner of SharePoint Online Site Page we have the word "SharePoint" which is on M365 Suite bar which links to default tenant Site. We have a requirement where the word SharePoint must be renamed to custom Name and relinked to another site. Rename was easy using CSS , but relink was not possible. I tried jquery and Javascript window.onload = function() { myFunction(); }; and document.addEventListener("DOMContentLoaded", function() { myFunction(); }) Both Did not help , as it changes the link sometimes and sometimes it doesnt. So went with Application Customizer approach 1: Did not work at all - Sometimes works Sometimes doesn't after each page load behavior was not same private modifyM365AppName(): void { const appTitleElement = document.getElementById("O365_AppName"); if (appTitleElement) { appTitleElement.textContent = "My Custom App Name"; if (appTitleElement.tagName === "A") { (appTitleElement as HTMLAnchorElement).href = "https://tenant/sites/Test1"; } approach 2: it worked only one time after that page loads stopped working private observeM365AppName(): void { const observer = new MutationObserver((mutations, obs) => { const appTitleElement = document.getElementById("O365_AppName"); if (appTitleElement) { this.modifyM365AppName(); obs.disconnect(); // Stop observing once found } }); // Start observing changes in the body (or a specific container) observer.observe(document.body, { childList: true, subtree: true }); } private modifyM365AppName(): void { const appTitleElement = document.getElementById("O365_AppName"); if (appTitleElement) { appTitleElement.textContent = "My Custom App Name"; if (appTitleElement.tagName === "A") { (appTitleElement as HTMLAnchorElement).href = "tenant/sites/Test1"; } } } approach 3 : This works but I need to keep the Mutation Observer Connect all time , only then it works . If i disconnect it after it finds the element it doesn't work: export default class customizerApplicationCustomizer extends BaseApplicationCustomizer<IcustomizerApplicationCustomizerProperties> { private observer: MutationObserver | null = null; public onInit(): Promise<void> { this.observeM365AppName(); return Promise.resolve(); } private observeM365AppName(): void { if (this.observer) { this.observer.disconnect(); } this.observer = new MutationObserver(() => { this.modifyM365AppName(); }); this.observer.observe(document.body, {childList: true,subtree: true,}); // Apply the first update this.modifyM365AppName(); } private modifyM365AppName(): void { const appTitleElement = document.getElementById("O365_AppName"); if (appTitleElement) { appTitleElement.textContent = "Document Managment System"; if (appTitleElement.tagName === "A") { (appTitleElement as HTMLAnchorElement).href = "https://tenant/sites/Test1"; } } } } Can you please suggest if Approach 3 is good enough or is there any way to Achieve both Rename and Relink of the work "SharePoint" on M365 Suite bar. Thanks, Pallavi8Views0likes0CommentsSharePoint Communication and Live Chat
I am receiving error 404 on Live Chat links to SharePoint when setting it up. Can you please assist me in resolving this issue? The links highlighted in "yellow" return error 404 specifically. Is there something additional that I should be setting up to make them work?3Views0likes0CommentsAdd an MS Whiteboard into a SharePoint document set from New-button
We are building a library with documents sets. We are creating different templates (based on Excel/Word/PowerPoint) that the users can add to their document sets from the "New-button". Now we came up with the idea to use MS Whiteboard (from a template). I can move/upload an existing .whiteboard file into the document set an make it work. But If I try to create a content type using a .whiteboard (or .wbtx) file in as template, it shows in New-button but it will not add it to the document set (it trying to download a copy to 'my downloads')!? Can this be done? If so, how? If not, best work around?39Views0likes0CommentsAutomatic Version History in SharePoint Online
Hi, I want to turn on Automatic Version History to reduce storage. Has anyone implemented this on existing Large Libraries? What I want to know is, does it use the current meta data and delete versions straight away and free up space quickly? Or will it only start analysing from when you change the setting and i'll have to wait a longer time to reduce versions? Many thanks! Chris104Views0likes2CommentsUnable to cast object Error
Hi Team, I'm facing an issue in a sharepoint list which has a calendar view in it, at the time we edit an item to update some values we got below error: Unable to cast object of type 'Microsoft.SharePoint.SPFieldChoice' to type 'Microsoft.SharePoint.SPFieldNumber'. What would be the issue?, and as per the message it seems to be that one of the columns is causing the issue, but the thing is that it was working fine for long time without any changes to the columns or any action being done in the configurations until 2 days ago we got to see this message. Thanks281Views0likes1CommentHelp Needed to Make PowerApp Visible in Search Bookmark
Hello everyone, I have a problem that I can't seem to solve and I hope someone here can help me. I created a PowerApp that I want to make visible through a bookmark in Search. When I select, copy, and paste the app ID from PowerApps into the field in the bookmark settings, I get a message saying it's incorrect. For comparison, I created a page on a SharePoint site, placed the PowerApps web part there, and pasted the same ID. It works fine there. Does anyone have any idea what might be going wrong or what I might be overlooking? Any suggestions are welcome! Thanks in advance!15Views1like0CommentsChange the SharePoint Online version limit on the Organization level
Inside this official documentation @ https://learn.microsoft.com/en-us/sharepoint/version-overview seems we can define the version limits on the Organization, sites & libraries. levels where if we need to change the setting from :- to this settings on the organization level:- this effect will only get reflected to new libraries inside existing sites and new sites. but this will not affect existing libraries and also version extra than 100 on existing documents or ones created more than 10 years.. but on the site level, we seems have more control to reflect the changes on all the existing libraries and trim the extra versions using power shell scripts. but doing so will make the site to have unique setting from the Org. so to be able to achieve what we are looking for by changing the SharePoint Online version limit on the Organization level and have the effect on all the new/existing sites, new/existing libraries and remove additional versions, can we do the following??:- Change the setting from the Org level to be 100 instead of 500, and define Time deletion limit then define this setting on each site separately + apply the trim script to each site. After that to re-force the site to re-inherit this setting back from the org? on paper this should work, but can anyone advice if there is a shorter approach to follow? and how?24Views0likes0CommentsBest approach to follow to apply naming convention for our files inside sharepoint
if we want to apply a naming convention for our existing and new files inside SharePoint sites. for example inside the compliance site to have this naming convention: - complinace-CreatedDate while inside the Sales to have this naming convention for the file:- Sales-ModifiedDate and also we might have different formats for different libraries inside the same site. So what is the best approach to follow? is there a way to do this at the office 365 level applied to lists or sites globally? Thanks58Views0likes2Comments"Information management policy settings" link shown/hidden
I have 2 communication SharePoint sites, inside 2 separate tenants, both have this site collection feature named "Library and Folder Retention" disabled:- but on one tenant i have "Information management policy settings" showing for libraries and content types, as follow:- while missing on the other tenant, as follow:- so why this is happening?21Views0likes0Comments