New answers tagged

0

Solution 1 Default value is produced by the <SharePoint:IECompatibleMetaTag runat="server" /> tag in the Master Page file (.master). If you cannot change the master page, SharePoint allows us to add elements to head tag through <asp:ContentPlaceHolder id="PlaceHolderAdditionalPageHead" runat="server"> Developers can ...


1

Try this <script src="../../jslib/jquery351/jquery351.min.js"></script>


-1

Try to use css to prohibit these two buttons from being clickable: <style> #Ribbon.Library.Settings.LibraryPermissions-Large,#ID_Share{ pointer-events: none; } </style>


0

You need to have Web Platform Installer and execute in console: Cd "C:\Program Files\Microsoft\Web Platform installer" WebpiCmd.exe /Install /products:WindowsFabric This groups will be created during this process.


2

I agree with Denis, as mentioned this feature has already been removed in SP 2019.


0

Whether other users occur the same issue? In OneDrive, it's necessary to sync the file and we can work with your synced files directly in File Explorer and access your files even when you’re offline. More information about syncing files with OneDrive for your reference: https://support.microsoft.com/en-us/office/sync-files-with-onedrive-in-windows-615391c4-...


0

If you are comfortable with working on the master pages directly, and if you can make the repeater work in that fashion, I would suggest just doing that. The whole HTML conversion process is janky, error-prone, and unnecessary. Same goes for page layouts.


4

I think, the code-based sandbox solutions are no longer going to work in SP 2019. It's one of the most promitent things removed in the latest sever version of the product: After careful consideration, we've decided to also remove support for code-based sandbox solutions in SharePoint Server 2019. Customers are recommended to explore SharePoint add-ins as an ...


0

Thanks to all that contributed. I will drop the solution in case there is someone who needs it. USER PROFILE SERVICE CREATION TIMEOUT ISSUES: STEP 1: To delete User Profile service Application Get-SPServiceApplication --> This gives a list of service apps Copy the particular id of the app to be deleted $todel = Get-SPServiceApplication 00a368c9-21d5-4ba4-...


0

Formate the lookup field as following(remember to change the source list for yourself): { "$schema": "https://developer.microsoft.com/json-schemas/sp/v1/column-formatting.schema.json", "elmType": "a", "txtContent": "@currentField.lookupValue", "attributes": { "href&...


0

As Mohamed said, you could add a judgment statement to avoid the null value exception, and you need to re-assign the modified value to item. foreach($Item in $spList.Items) { $oldurl = New-Object Microsoft.SharePoint.SPFieldUrlValue($Item["INUM"]) if ($oldur -ne $null) { $oldurl.URL = $oldurl.URL.Replace("T9", "DR") Write-...


0

Looks like the $Item["INUM"] doesn't have a value at the first retrived item, so the $oldurl is NULL! and you can't use the replace function with a NULL string So you should check if the $oldurl is not null before calling the replace function as the following: foreach($Item in $spList.Items) { $oldurl = New-Object Microsoft.SharePoint.Client....


0

Make sure that you have installed the latest security update for SharePoint 2016. Description of the security update for SharePoint Enterprise Server 2016: December 8, 2020 (KB4486753) Description of the security update for SharePoint Enterprise Server 2016: December 8, 2020 (KB4486721) But before you patch your farm, It's strongly recommended to check ...


0

There is no tool to migrate an entire site. They are completely different back-end systems and un-related in their technology stack. You'll need to migrate individual pieces over separately. If source Wordpress site contains mostly static html you may export it to html first (see e.g. Tools to Convert WordPress Site to HTML) and then create publishing pages ...


0

I'm not aware of any third party tool that will allow you to migrate from WordPress to SharePoint. However, you could write your own code to perform this task. You would need to query your site using the WordPress REST API or create an XML export of the site. You could then migrate this data to SharePoint using either PowerShell or the Microsoft Graph API ...


0

Please check if the URL of the template is right or re-upload the document template 1.Sign in the site collection as an admin 2.Go to Site settings page >> click on Site conent types under the Web Designer Galleries 3.Go to the Site Content Types page, click the Document content type 4.Click on Advanced settings On the "Enter the URL of an ...


0

Have you tried using Add template option shown below? You can refer to this article Many ways to use document templates


0

I had to physically login as the local administrator. Whilst logged in as SP_Admin, an account designed to be a web application administrator: Run as administrator did not display the link. Run as different user "administrator" did not display the link. Run as dedicated domain SP_Farm account could not view the settings. SP_Admin and SP_Farm ...


1

Try using below code: document.querySelector("h1#pageTitle span").innerText You can trim the page title like: document.querySelector("h1#pageTitle span").innerText.trim() Or for safer side you can use: document.querySelector("h1#pageTitle1 span") ? document.querySelector("h1#pageTitle span").innerText.trim() : "&...


0

We found the solution. In the CSS Media Print element, we used the incorrect tag element. Instead of td, we used th. Once we changed it, the print showed the correct font-family and size.


1

not sure how it does 3rd party tools, but that is possible (like metalogix,...etc) but I think it should be first copying the underlaying hidden list of user profiles and then copying the item. that is because as Joel Rodrigues said that field is a lookup.


1

@Denis Molodtsov is right, you need to add ID to your DIV tag to make it unique. Below is my test result in SharePoint 2013: <script src="https://code.jquery.com/jquery-3.5.1.min.js"></script> <script src="https://d3js.org/d3.v6.min.js"></script> <style> .container{ width: 250px; ...


1

This is probably that your create a Multi-lines text column with Enhanced rich text. Note:This type of multi-line text field can customize the font style. Therefore, I suggest you can create a Multi-lines text column with Plain text.


1

If all scripts were loaded correctly, then the issue is most likely with the selector. The following CSS-selector will look for the very first DIV in your page: d3.select('div') This is definitely not what you need. To avoid selecting wrong divs, you need to add an ID to the DIV you target: <div id="MyDiv"></div> Then, modify the CSS-...


0

SharePoint 2016 on-Premise -- Resolution for me was to delete the HTML file first. Wait for a few seconds and then delete the Master page file. Of course ensuring that no sites were using the master page also helped.


1

I don't think that you will be able to keep a reference to the previous user as it's no longer a valid user. User fields are lookups to a hidden list within the site that contains the user information, and those users are probably no longer there for your new site so the lookup is not valid


1

This issue usually occurs because the Dai_ExcelLab doesn't have a PublicKeyToken! So that, try to do the following: Sign the DLL with a strong key Add your signing file in the SharePoint Web App bin folder. Remove the old reference and re-add the signing dll reference again in VS.


2

The item should still come across with an orphaned user. However, if you want to eliminate these items, you can check to see if the user exists at the destination first before copying using (SPSite site = new SPSite(_url)) { SPServiceContext ctx = SPServiceContext.GetContext(site); UserProfileManager _upaManager = new UserProfileManager(ctx); //...


0

When you request the URL https://xxx.xxxxxxxx.com/CN/Pages and the credentials box pops up, which means that anonymous users are trying to access the page library without the required permissions. Please deactivate "Limited-access user permission lockdown mode" site collection feature to make anonymous users have permission to pages library. Then ...


0

Sorry for the very late reply. I can't understand this answer. I want to create a Custom Action with URL for a list view ribbon. But following the instructions here, a single, particular item on the list is hard-coded into the URL (the {ItemID} parameter). So the custom action operates on the same item every time, and disregards which item is selected on the ...


4

There is no out of the box capability to do this with SharePoint Server. You would need to create something like a [Remote] Event Receiver that called the Graph API to CreateEvent with an online meeting. Since your question is general and open ended, investigate this method and come back with specific questions you might have.


0

The dialog object shoulg be iframe element in html, and you could get the element in iframe with this script: document.getElementById(iframeId).contentWindow.document Reference: https://stackoverflow.com/questions/2868032/javascript-how-to-change-elements-content-inside-a-page-when-using-iframes-us


0

The answer is No. Document templates works with Content Types (or File Types when multiple content types is not enabled). They work on library level and cannot be restrict to subfolders.


0

No you can't, you have to create a document library for each service with your prefer template


1

Here's full PowerShell for retrieving all folder, sub-folder and files with last modified date for your reference. Add-Type -Path "C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\16\ISAPI\Microsoft.SharePoint.Client.dll" Add-Type -Path "C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\16\ISAPI\Microsoft....


1

You could add filter in the end of rest api like this: &$filter=FileLeafRef eq 'FolderName' For example: /_api/Web/Lists/GetByTitle('Documents')/items?$select=FileLeafRef,File_x0020_Type,Category,Category0,OData__Author,Folder,File,ContentType&$filter=FileLeafRef eq 'Folder1'


1

This is the expected behavior since version histories do not carry with the document when you move it on most occasions. In addition to the first Answer: If you have publishing features activated on this site, you can use Content and Structure under Site Settings to move the document, which will retain all version history safely. You can also refer to the ...


1

When you move a file, version history starts at 0 again. SharePoint introduces it's own versions when creating the file (so there are versions prior to you initially working on it). When you move files this way, the Created/Modified values are updated to the individual who performed the Move action. If you do not want to modify metadata in any way, a ...


0

I understand you want to check in all check-out files under a library, you may have a try below cmdlets: function CheckInDocument([string]$url) { $spWeb = Get-SPWeb $url $getFolder = $spWeb.GetFolder("Test lib") $getFolder.Files | Where { $_.CheckOutStatus -ne "None" } | ForEach { Write-...


0

In SharePointDesigner we created 3 forms realted with the list (New, Edit,Display). These forms are the default ones. Now we can open, edit and create items.


0

Outbound mail settings are not exposed to client-side APIs, only the server-side object model. Your workflow will always use the farm-wide or web application outgoing mail settings.


1

In sharepoint, AD group is treated as a normal user. There is such rest api to find out the user in which AD groups .


1

I just check my SharePoint 16/19 enviroments. The file sharedhovercard.js seems to be included with the installation of SharePoint. Actually, the path of the file in local machine is: C:\Program Files\Common Files\microsoft shared\Web Server Extensions\16\TEMPLATE\LAYOUTS\sharedhovercard.js


2

Restore from a newer version to an older version is called Backward compatibility that not supported in SharePoint as well as SQL Server. Only Forward Compatibility is supported. otherwise, you will need to use a 3rd party migration tool to can restore to an earlier version.


1

Here are a few things you can check to narrow down this issue: Make sure the issued files do not contain special characters that are not supported for syncing (\, /, :, *, ?, ", <, >, | , # , %, etc.). Make sure the files do not exceed the 256-character limit on Network Folder Paths (starting with the first backslash in the path name). You can ...


1

It is not supported by Microsoft. We are not able to downgrade a SharePoint Farm through a supported approach.


2

No, it isn't possible. The only supported way would be to use a migration tool such as Sharegate.


1

Is “sharedhovercard.js” part of SharePoint's default installation? It's not a part of the default SharePoint 2013 Installation, and this file is not found on my side! Also, I have checked the physical layout path, I can't find it! C:\Program Files\Common Files\microsoft shared\Web Server Extensions\15\TEMPLATE\LAYOUTS It would be also great to share the ...


Top 50 recent answers are included