New answers tagged

0

I would break inheritance of permissions on the folder, then assign anonymous users "Read" permission only for that folder and its contents.


0

all that was mentioned by Mike are valid tips and should be deferentially checked and considered other thing I would check which may have a huge performance impact is the way You query items from SharePoint. Using SPQuery and GetItems() method is not the best way. First of all it does not provide any caching and returns SPListItem objects that have all ...


0

It's by default that user cannot view the files in the folders or libraries if they don't have permissions to these files. Get all the file links and display in the page is the workaround for this requirement.


0

I think you need to break the inheritance on the particular file and grant the access to set of people on that file. Note: You can create one group and grant the permission to it on files and keep adding new users to whom you want to grant the access on files in that group.


0

I think you are facing the problem, the library what you have deleted still shows up in my home page last library visited dashboard, if this is the scenario we can get rid of this by cleaning the first and second level of recycle bin from SharePoint online Go to the "RecycleBin.aspx" page by following the below navigation, there you will find your library, ...


1

I've faced a similar scenario myself; I used document sets (yet more info here) to create a document set and a handful of sub-folders. It sounds rather similar to what you are doing. In a nutshell: editing a List item then triggers a workflow to create a document set (and sub-folders) in a Document Library. Here's my post which makes use of Cameron Dwyer'...


1

Several things to try: Instead of foreach loops, switch them out for 'for' loops, they have been proven to be faster: https://www.c-sharpcorner.com/article/for-vs-foreach-in-c-sharp/ I'd look into concatenation of string more efficiently: https://stackoverflow.com/questions/21078/most-efficient-way-to-concatenate-strings I'd replace all instances of ...


0

There is another approach using MS stream. You can upload the video to stream and use the link to video or embed the video to your modern page. I tested with it and it seems Chrome still has some issue with it. Edge works perfect. You may be better to open a service request about this issue.


0

You can try the below steps, it is working in chrome, Mozilla and IE. Show a selected YouTube video Using this connection we can display the selected video in the “Embed” web part. To do this follow the below steps: Add the below two web parts as like above image web part: List web part and choose the list “Test Video List” Add an Embed webpart. Step 1 ...


0

I can reproduce your issue. The list column filter cannot work after apply the metadata navigation filter. As a workaround, we can edit the page and edit the list view web part, then tick "Server Render" under Miscellaneous section as below: If you want to show toolbar, you can edit the toolbar type:


0

Make sure the Recycle bin is enabled on your web application; check this


1

This works for me using Office Dev PnP. Set-PnPField -List "Library" -Identity "Document ID" -Values @{Hidden=$true} This way it's no longer visible on the DispForm.


0

As it turns out, the issue was caused by the user having multiple/corrupted Office profiles. We removed the profiles and created a new one, and the issue is resolved.


0

Are you certain you can get it to work by changing "." to "_" or changing to "_DD.MM"? “_MM.DD” or “_DD.MM” should be identified as the same format by SharePoint. Only ISO 8601-compatible datetime formats are supported in queries, such as “YYYY-MM-DD”. Per my test, what is returned in the search result is based on what keyword you have used. For example: ...


1

I can reproduce the same issue on my SharePoint Online library. I think column formatting is not supported for this column yet (Even when it is of type Person or Group). I tried applying the JSON code from both library view and column settings but it not accepting the JSON while saving) You can check the supported columns from below documentation: Use ...


0

Understand. If you upload only one new document, then Edit form is opened. User is able to edit metadata and by the button OK save the changes. But if there is a workflow on new item created, when user saves the changes, he gets error, because workflow made the changes instead. If you want not to be the Edit form opened right after upload one document into ...


0

In the POST man tool select the binary option where it will allow to attach or browse any file - there you attach any excel file by browsing your local directory - then perform the POST operation to SharePoint, this will upload the document to the SharePoint library - then go to the code section of the POST man tool where we can all equivalent code for this ...


0

Try using below code to create a file in SharePoint library: var restUrl = "http://siteurl/_api/web/GetFolderByServerRelativeUrl('/sites/siteName/DocumentLibrary/FolderName')/Files/add(url='a.xlsx', overwrite=true)"; jQuery.ajax({ url: restUrl, type: "POST", headers: { "accept": "application/json;odata=verbose", "X-...


0

Ajax call listed below works in case of file extension is xls. It doesn't work in case of xlsx. I think there should be special syntax to create valid .xlsx file. Probably this question isn't about headers but about creating valid .xlsx file. var fileContent = 'aaa'; jQuery.ajax({ url: _spPageContextInfo.webAbsoluteUrl + "/_api/web/...


1

You should create a termset called companies, then add all companies as term in this term set. Like this: Then in your managed metadata column, choose this companies termset. Set default value:


0

The CAML Query as below. <View> <Query> <Where> <Contains> <FieldRef Name='ManagedMetadata' /><Value Type='Text'>HFM</Value> </Contains> </Where> </Query> </View> The following example PowerShell Script about getting file items ...


0

To create folders within a document library, you must enter the folder within the given ListInstance. Folders can be nested to create sub-folders. <pnp:ListInstance Title="My Doc Lib"> <pnp:Folders> <pnp:Folder Name="1. Admin" /> <pnp:Folder Name="2. SharePoint"> <pnp:Folder Name="2A. PnP Sub Folder" /> </...


0

If this is just for reporting purpose we can go with out of the box Storage Metrics report: Navigation: Site Actions >> Site Settings >> Storage Metrics Storage metrics report Note: We can get SharePoint library size, ONLY when you have Quotas applied to the site collection. otherwise, you get "The storage space allocation page cannot be used for sites ...


0

Thanks a ton Ganesh. It worked. I used the following: https://tenant.sharepoint.com/sites/_api/web/GetFolderByServerRelativeUrl('Shared%20Documents/Project%20Logs/T-Mobile/1052/TMO%20Integration%20Migration/AZ')/files?$orderby=ListItemAllFields/Modified%20desc&$top=5 Thank you again Best Regards


2

Try using your REST API something like below: siteUrl/_api/web/lists/getbytitle('Library Name')/items?$select=Title,FileLeafRef&$orderby=Modified desc&$top=5 Or if you want to get the files from specific folder then try using below: siteUrl/_api/web/GetFolderByServerRelativeUrl('/sites/Site Name/Library Name/Folder Name')/Files?$select=FileLeafRef,...


Top 50 recent answers are included