Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [content-type]

A content type is a reusable collection of columns and settings that can be applied to a certain category of SharePoint content

0
votes
1answer
9 views

Getting a Sharepoint List Fields that are common to all content types contained in the list

I'm trying to get the list fields shared by all the content types in said List. After getting the List by its Title, I used the Fields property to get all the fields in the List: List list = ...
0
votes
1answer
16 views

Prompt for Content Type

all. I'm setting up content types for a modern SharePoint Online doc library in anticipation of a migration. As there will be several content types to choose on upload, is there a way to set the ...
0
votes
1answer
25 views

Content Type Column not appearing in Document Library

I am adding a content type to a document library, but after deleting and readding one of its site columns, this column does not appear in the document library anymore. How can I fix this?
0
votes
1answer
12 views

Editing a content type using Content Type that doesn't exist in the Content Type Hub

We deployed some Site Collections using templates that weren't linked with the Content Types on our Content Type Hub, in fact, we have never really used the ct hub. All our Site collections have a ...
0
votes
0answers
26 views

Rolling out new description for existing Content Type

over the past few days I have been trying to update the content type description on a site collection. I have been doing this using SharePoint Designer. Unfortunately, when I push to Site the ...
0
votes
1answer
25 views

get all available content type in Site Pages

I want to get all available content type under Site Page : Get-PnPContentType -List $listName give me only : Wiki Page, Folder, Web Part Page, Site Page, Repost Page. but actually, this what I ...
1
vote
1answer
30 views

Change new button order and default content type using pnpPowerhsell

For the Library 'Site Pages' on communication Site, I need to change the order of the content type and set some of them to hide. SetDefaultContentTypeToList for default content type for List 'Site ...
0
votes
0answers
13 views

Linking to EditForm.aspx using a specific content type doesn't retrieve all data?

I have a list with three content types associated. These work fine for the addition of new data, but if I try to use them for the EditForm.aspx page, they don't pre-populate any fields except the ...
1
vote
1answer
14 views

Can a document have multiple Content Types?

My understanding is that a document can only have one Content Type yet I have several people telling me that it can. Perhaps the confusion is around inheritance. If I inherit from a parent Content ...
6
votes
1answer
78 views

Content Query Web Part - Change Content Type upon link opening?

[Edited from original post] I'm trying to open the links that come up from my Content Query Web Parts. However, I'm having a problem which I'll now explain: In my list, I have four content types - ...
1
vote
1answer
13 views

Removing an item from content type won't remove it's propertys

Whenever I remove a column in the Content Type, i still see the crawled propertys of that column when i try to do the mapping in the Manage Propertys. How can I definetely remove a column in the ...
1
vote
1answer
16 views

Get all fields of a site content type via REST?

Anybody know if there's a REST way to get all the field names for a site content type? I know I can do this: http://<sitecollection>/<site>/_api/web/lists(listid)/contenttypes(...
0
votes
0answers
16 views

Add list item with content type .. spfx or rest sample .. sharepoint online

I have a list where content type is associated . I want to add a list item with attachment from spfx using sp-pnp . Please help . sp.web .getFolderByServerRelativeUrl("Student%20Details%20No%...
1
vote
0answers
34 views

How Can I add a Content Type to a Document Library using SPFx

I have a Content Type for a Document Library that resides in a Content Type Hub. It's available on the team site. Now when a Library is provisioned, I would like this content type to be added. Can ...
0
votes
2answers
20 views

Sharepoint Column Fields not available on upload

I have created a site content type based on an inherited parent type, Currently when I create a new document, all the relevant fields appear in the dialog. But if I upload a document these two ...
0
votes
0answers
32 views

Custom content type selector in jslink?

I'm trying to customize the content type selector from a jslink file. I tried the standard approach, but it does not trigger : (function () { var customContentType = function (ctx) { ...
2
votes
1answer
27 views

Script to find libraries that have a specific content type

I would like to know if there is a power shell script that will go through all libraries/lists on a single SP2013 farm and give me an output where a certain content type is still in use? I want to ...
0
votes
0answers
12 views

Why does SPD make a new content type for each approval task?

I am making a workflow that kicks off an approval task to a specified user depending on which folder the file is in. Let's say I have 5 different folders so there are 5 logical checks and each one has ...
1
vote
1answer
18 views

Can't Associate Local Columns to Content Type on Library Provisioned from Content Type Hub

We have SharePoint 2016 On-Prem and using the Content Type Hub. We created our own custom content type for document libraries. The content type in the Hub is set to allow changes (content Type is Not ...
0
votes
0answers
51 views

SharePoint Site Column not appearing in List

I have a Content Type with a number of Site Columns inside it. One of the columns is not appearing in some SharePoint Document Libraries that I am assigning the Content type to. I'm on premise - the ...
0
votes
1answer
51 views

SharePoint Online : Powershell get id from document set created

I have created a document set by powershell and I would like to get ID of the document set created to update name with this ID. where Name of the document will be in format Name_ID I m not able to ...
0
votes
0answers
24 views

How to inluclude picture to docx document?

I use this instructions how create word document from SharePoint list. I created this field (image) in content type But not have it in express blocs
0
votes
0answers
16 views

Empty base content type while creating a new content type in Visual Studio

I'm new in Sharepoint Development, I'm following example provided by Microsoft. I want to add a custom content type to a SharePoint-hosted SharePoint Add-in. I added a folder to my solution then when ...
0
votes
1answer
23 views

Access denied while changing ContentTypeId

I got an error when I have Contribute permission for site: Access denied. You do not have permission to perform this action or access this resource. my code is uploading the file and then trying ...
0
votes
1answer
31 views

How Can I Add a Content Type to Asset Library Programmatically

I need to add a content type whenever an Asset Library is provisioned. How can I do this ? We have SharePoint 2016 On-Prem Regards, Bismarck
1
vote
1answer
36 views

Change Content Type for all sub sites and lists/libraries

We are using 2016 On Prem For our site collection an admin user can do the following Create Sub Sites Create Document Libraries For any of these items we use custom content types to enforce ...
2
votes
0answers
10 views

Does List Metadata get copied into document properties

If you specify a document as being of a particular content type, and then move the document, the metadata associated with that document moves with it, regardless of what library the document is moved ...
0
votes
1answer
13 views

Content Type Policy Statement not appearing

I've created a content type and am trying to configure Policy Statement under Information Management Policy Settings. You are meant to enter the policy statement in a multi-line text box. The ...
0
votes
2answers
35 views

Reverse lookup on a Content Type ID

I've been asked to help with a site that another person created. SharePoint 2016, on-premise. Was developed in 2015 and moved to a newer 2016 server. While looking at the custom code, I see that the ...
0
votes
2answers
28 views

Can you remove a column from a Content Type after data has been added?

I'm curious if I add a rating column to my Content Type (Which inherits from Document C.T.) can I remove it later if I find it not to be useful? What will happen in the document library to those ...
1
vote
1answer
27 views

Converting Document Library Fields to a Content Type

so I have one heavily customized SharePoint Document Library with lots of extra fields. I'm wondering if anyone has figured out an easy way to lift those fields into a Content Type while preserving ...
0
votes
1answer
15 views

What are the implications of converting Documents in a library to a new Content Type?

If I have an existing set of documents in a document library, and I created a new Content Type with required fields, what are the implications when I apply that content type to the library? We are ...
0
votes
1answer
25 views

Change “Choice field” type in Word document Content Type

I have a Word document Content Type on a Document Library. I'm adding SharePoint columns as fields to the document: One of the columns called "Initial_ReportType" is a Choice column which is ...
2
votes
2answers
87 views

What is the difference between document properties and metadata?

I have been using the term metadata and properties interchangeably. This paragraph from Microsoft indicates there is a difference. Can someone explain the difference? Using metadata with content ...
0
votes
1answer
36 views

Parent Content Type Site Columns again getting added to Child Content Type in ContentTypeHub

I am facing weird issue in ContentTypeHub. Where I have ContentType 'Base'. and then I created new ContentType in Hub i.e 'Test'.its parent contentTypes is 'Base'. Now I have removed unnecessary ...
0
votes
0answers
14 views

How to add new Content Types to an existing List C#?

I've inherited a SP site that has ~30,000 site collections. In turn these site collection each have typically one site (can have more but they don't). From everything I can comprehend this is a bad ...
0
votes
0answers
25 views

Is there a way we can identify status of Content Type with REST

I am trying to see if there is a way we can find out whether a content type in content type hub is published on not. If it's published then which date it was published. Basically, I am looking for ...
1
vote
2answers
44 views

Use custom content type as default content type for document library in SharePoint Online

Is there any way to use our custom content type as default content type for document library? I have a custom content type in a site collection. Whenever I/others create a new document library, the ...
0
votes
1answer
64 views

SharePoint Lookup Column Additional Field Value

Hello SharePoint Community! So, I have a list of a item content type that has a Yes/No field. I reference this content type in a lookup relationship on a Document Library. From that lookup ...
2
votes
1answer
37 views

Default value for document field

Suppose I have a content type named MyDocument containing a column MyValue. I added this content type to a simple document library. Now to add a default value to the column MyValue, there are two ...
1
vote
0answers
50 views

Create Item in Document Library thru REST API

Is there a way to create an item inside a list library? Or perhaps convert a folder/file into a custom Content Type? I have added an item using custom content type thru the "New" menu (named "g1q" on ...
2
votes
1answer
16 views

Reinstating deleted built-in site columns SharePoint Online

On removing two built-in site columns from a custom content type they appear to have been deleted from the site collection. I find it surprising that they are deleted as they are in use in many sub ...
1
vote
1answer
29 views

Content Organizer Rulers For Folder Based Content Types

I am thinking that I already know the answer to my questions, but am hoping that I am wrong. Can I setup a Content Organizer Rule on a Content Type based on a folder? So a folder content type, NOT a ...
4
votes
1answer
238 views

Sharepoint online powershell for changing list content type

i need help with readonly content type on list. I have sitecollection ex. "sites/SC". In that sitecollection i have 1000 subwebs ex. "sites/SC/web1". In each subweb i have one document library ex. "...
6
votes
2answers
112 views

Migrating our on-premises sub-sites to be modern site collections. how we will be managing the content types and site columns

I have an on-premises sharepoint team site collection, and it has 25 sub-sites. now i want to migrate this on-premises site collection and its sub-sites to be inside sharepoint online. and i want to ...
0
votes
1answer
30 views

How can I create a flow to change a content type after an item is created or modified, without giving people the ability to change the content types?

So I have a flow in place where an item's content type changes from "Item" to "Edit item". The plan here is when someone submits a new item in the list, the next time someone goes to edit that item ...
1
vote
1answer
41 views

Powershell doesn't output contenttype

I have the following script which should output the name of the content type for each list item however it is not, where am I going wrong? The output for both Id and Name is just a blank line, clearly ...
1
vote
0answers
14 views

SharePoint Archiving

I am trying to set up an archiving system by using retention policies, to avoid facing the 5K limit in document libraries. My question is: 1. will a drop off library every face the 5K limit, 2. and ...
3
votes
0answers
32 views

How to change icon for a specific Content Type

I have a collection of pdf documents that are considered Knowledge documents as they reside in a Knowledge Base and are curated. They are in a Document Library and have a specific content type... ...
1
vote
2answers
70 views

Powershell script to list all files in subsite with the content type assigned to them

I have a SP 2013 environment with documents uploaded to the sub site Document centre. I need to know which files was uploaded and which content type (also if no content type was selected) was uploaded....