question

sajithgh avatar image
0 Votes"
sajithgh asked sajithgh commented

Hide Export to Excel, Power Apps and Power Automate from Document Library

We want to hide Export to Excel, Power Apps and Power Automate from Document Libraries of a site collection. How to achieve this ?

105123-hidepowerappspowerautomate.png




Also can we hide Return to classic sharepoint in the left bottom?

office-sharepoint-online
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

JerryXu-MSFT avatar image
0 Votes"
JerryXu-MSFT answered sajithgh commented

Hi, @sajithgh ,

To hide these buttons, you can create a application customizer to inject CSS or JS to hide the element. Here is a tutorial about how to do it.

For the return to classic link, you can only disable/enable it on tenant level. Use the PowerShell cmdlet

 Set-SPOTenant -DisableBackToClassic $true

If you get error saying the parameter does not exist, you many need to update your PowerShell to latest version.

Note: Microsoft is providing this information as a convenience to you. The sites are not controlled by Microsoft. Microsoft cannot make any representations regarding the quality, safety, or suitability of any software or information found there. Please make sure that you completely understand the risk before retrieving any suggestions from the above link.


If an Answer is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

· 5
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

I tried the below steps. It is not working.

https://docs.microsoft.com/en-us/answers/questions/97679/sharepoint-online-powerapps-and-automate-buttons.html.

No other option other than application customizer ?

Also is there any option to hide left app navigation ?

105288-2021-06-14-10-39-10.png


0 Votes 0 ·

Hi, @sajithgh ,

There is no out-of-box features available to hide the command bar in the modern page. The app navigation you post is the new app launcher. It is not supported to hide the whole app launcher.

0 Votes 0 ·

Creating an application customizer to inject CSS or JS to hide the element will not work for Three Dots,Power Apps and Power Automate etc. Please advise.

1) Three Dots - The id - splitbuttonprimary is not unique

105351-threedots.png


2) Power Apps, Power Automate, upload uses focuszone random ids which we cannot rely.
105228-upload.png


105229-powerapps.png


105352-powerautomate.png


0 Votes 0 ·
threedots.png (54.4 KiB)
upload.png (80.8 KiB)
powerapps.png (94.4 KiB)
powerautomate.png (99.3 KiB)
Show more comments