New answers tagged

0

When creating a reusable SharePoint 2013 workflow from SharePoint Designer using the Ribbon, you are unable to bind it to a content type. The (very silly) workaround to this is to create the workflow from the File menu as follows.


0

I think it would be a tough job just by using PowerShell. Basically, you will have to Do the migration for the subsite. Get references to the Content Types at the source site collection. Recreate the content types in the destination site collection and then assign them to the same objects in the subsite. Go through all contents in the subsite and then redo ...


0

Try to use any third-party migration tool like sharegate, Metalogix etc. Using the tool, first migrate structure of the site, then do the data migration. You can install these tools as a trial free version for some days. While you are doing the copy structure migration, you can even restructure your site in the target environment, everything is ...


0

How long have you created new content types? Make sure you have waited 24 hours to make these documents to be crawled for search. Make sure the documents you want to return with the correct content types. You could also provide some screenshots with us to understand your issue more correctly.


0

You can actually do this with the following one-liner! Get-PnPList -Includes ContentTypes | Where-Object {$_.ContentTypes | Where-Object Name -eq "Knowledge Document"}


1

I've managed to do that as below: ... SPDocumentLibrary lib = (SPDocumentLibrary)web.Lists["listname"]; SPContentType contentType = lib.ContentTypes["content-type-name"]; ... SPFile spf = web.GetFile(contentType.DocumentTemplateUrl); ...


Top 50 recent answers are included