Content Type Question

I created a term set called 'Document Category' that has 10 different terms (e.g. Quote, Agreement, Diagram, etc.) that describe the types of documents users save into our main document library. I then created 10 different Content Types, each with it's
own template, so, from the doc library, users can click Files > New, and choose the appropriate content type to create a document. I want to be able to sort in the library using a custom column I created, called 'Document Category', that links to the 'Document
Category' managed metadata term set. When users create a new document based on one of the content types, I want the 'Document Category' field automatically populated in the Document Information Panel with the correct term. My problem is that I can't find a
way of getting each individual content type to default to it's matching term. I can set the custom column to use a default value (e.g. Quote) so it comes up automatically filled in for the 'Quote' content type. Because I'm linking the 'Agreement' content type
to the same custom column, though, it obviously then defaults to 'Quote', too. I was hoping to have a different term linked to each content type. Does anyone know how to do this? Any help would be greatly appreciated! -Pete

Hi,
According to your post, my understanding is that you wanted to set the 'Document Category' field automatically.
I recommend to create SharePoint 2010 Platform workflow and then set an empty Managed Metadata column using the following format: Term Name| Unique Identifier based on the item content type.
You can create workflow as below and start the workflow automatically when an item is created:
Thank you for your understanding.
Best Regards,
Linda Li
Linda Li
TechNet Community Support

Similar Messages

  • Not able to crawl all items from External content type

    Hello All,
    "All the records in my external content source are not getting crawled, only 1/3 rd of the data are getting crawled."
    Steps:
    I created "External content type" using sharepoint designer which connects to a SQL Server database.
    Have written a SQL View joining 2 tables, which return 9,00,000 rows when executed using the SQL Server management studio.
    I used the default "Business Data Connectivity Service" and "Search Service Application" and made sure the necessary permissions are set.
    Created a External Content source for the search service application and selected the "Business Data Connectivity Service" -> "Crawl selected External datasource" -> <my external datasource i created in sharepoint designer>
    Issue
    When i ran the full crawl for the first time it crawled "3,49,923" records in 01 hour and 07 seconds. And returned 1 error "Error crawling LOB Contents.(Error caused by exception: System.InvalidOperationException. There is an error in XML
    document...)
    Later i removed the below item from the index and started a full recrawl, this time it crawled "3,49,924" records 1 record extra from my previous crawl
    and no errors were returned.
    Please let me know what could be the issue. It doesn't look like the permission related issues as i am able to crawl the 1/3rd of my total data. Also i am able to search the crawled data. I also set the throtteling limit for the "Business data catalog"
    to -maximum 10000000 -default 1000000 which is less than the data it has to crawl.
    SRIRAM

    Hi ,
    I started the change suggested in the link shared by you, but got stuck at a point,
    The field which i set as identifier in BCS earlier is not having unique values. Total rows returned by the sql view is 899000, but the unique values present in the column that is set as identifier is
    3,49,923, which is equal to the number of rows crawled. - Is this the reason why it didnt crawl all records?
    The table that is used in the sql view has composite key, - Is it possible to have multiple identifier in BCS as well?
    Is it possible to make BCS to ignore the identifier? i mean creating BCS without an identifier column?
    Please let me know your suggestions on this.
    Thanks,
    SRIRAM
    Yes, BCS needs a UID. This is so it can figure out changes over time to a single record. Otherwise all changes to a row could be a potential new row without BCS knowing any better.
    Yes, or just have it run off the composite key instead of the field you're using now.
    Nope, BCS needs a UID field like in answer 1 :)
    Good luck!
    My CodePlex -
    My Blog - My Twitter
    Join me at the San Francisco SharePoint User Group!
    If this post helped you or answered your question please remember to mark it! :)

  • If I want to create a set of hierarchical relational content types, how do I move from one to the other?

    My scenario. I have been asked to create a series of content types to manage Report requests. A Report Base content type to be the parent, then three content types to extend that base to a Report Crystal, Report SSRS and Report SSIS. These top level
    reports collect data once. Once an instance of the "Report Crystal" content type  has been created the Report Writer needs to fill out another content type "Report DataSource" related by the ID of the parent to track any
    stored procedures used in the report, what database\s does it hit... Here is where I am lost on the how to fill out related lists. Do I add a calculated column that attaches the report ID the a URL? e.g. ..ReportDatasource/newform.aspx?ReportID=1 which will
    then show me the form. Or has this changed in 2013. I am reverse engineering some 2007 code to try to figure this out.
    The next step after that hurdle is, when the report writer has completed each data source entry, a workflow generates and email with links to a "Change Request" form. There would be one created for each row in the Report Datasource. The
    DBA would have to evaluate each "Change Request" and either Pass or Fail each one.  This Pass\Fail parameter and a description would get recorded in a "Change Result Log".
    I am wondering if a workflow replace the need for calculated columns or at least some. I think I have to have a calculated column in the initial "Report Crystal" column to fire off creating the first "Report DataSource" entry. And
    then a calculated column on that to give the option of adding another entry into the "Report DataSource" list if there are multiple procedures for the report. But if the report writer sets a column in the "Report DataSource" as Ready 
    For Review" a workflow should generate the Change Request.
    The flow is kind of set in stone but the structure is not. A very high level few of the data points

    Hi Developer_46038, 
    if for example all the properties and object are stated as list, i think there is a tool that overcome cross list.
    http://listrollup.codeplex.com/
    http://social.msdn.microsoft.com/Forums/sharepoint/en-US/13a51be5-4007-46e8-bbb2-5e04320dfebd/cross-list-webpart?forum=sharepointcustomizationlegacy
    you can also using dataview webpart to show the cross lists:
    http://office.microsoft.com/en-us/sharepoint-designer-help/create-a-data-view-HA010094804.aspx
    http://office.microsoft.com/en-us/sharepoint-designer-help/connect-two-data-views-HA010169133.aspx
    3rd party: http://community.bamboosolutions.com/blogs/bambooteamblog/archive/2009/03/11/relational-database-capabilities-for-sharepoint-lists-cross-list-web-part.aspx
    but i am not quite sure how crystal report will do, if you can make the crystal report as also list, i think its possible, 
    http://social.msdn.microsoft.com/Forums/sharepoint/en-US/8247edf5-dee8-49d8-b7ee-9e49bfd97b9b/crystal-report-in-sharepoint-2010-webpart?forum=sharepointdevelopmentprevious
    Regards,
    Aries
    Microsoft Online Community Support
    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.

  • I need help using multiple content types in a wiki page library

    I currently trying to used multiple custom content types based off of the wiki page content type in one wiki page library. 
    EDIT: "Allow management of content types" has been enabled with the designer
    The way i would like this library to work is:
    Click the "Files" tab in the ribbon
    Click the "New Document" drop down menu
    Select one of the content types (Client, Contact, Project)
    SharePoint Will Ask for the Page Name and content type fields
    Click create
    Then it will take you to the new created page.
    This issue I'm currently having is when i click on one of the options (Client, Contact, Project) it will ask for a page name then you have to check it in to get to the edit form. The edit form it then loads is the default content type and not the selected
    content type.
    So my questions are.
    Is there any way i can combine the page name and edit steps together into one step?
    How can I get the edit form to pull from the selected content type?
    Thanks in advanced
    James T.F

    Wiki library isn't really designed for customizations... it's a "special" library that overrides a lot of default behavior... similar evidence can be found if you're trying to add metadata columns to wiki pages... they're just not really designed to handle
    it very well.
    Scott Brickey
    MCTS, MCPD, MCITP
    www.sbrickey.com
    Strategic Data Systems - for all your SharePoint needs

  • Missing Columns from List Content Type

    Hi,
    I'm having some strange problems with one of my site collections, I have site content types with a few columns in it and I'm using them in 3 different libraries.
    However recently something happened and it seems the list content types in one of the libraries have stopped using some of the columns set out in the site content type (according to library settings). The columns still show as part of the list (and the metadata
    is still in there), when I've tried adding them back to the list content types, I do not see them in the list columns group, only in their original column group. If I try to add them to the list from their original group I get the errors similar to the following:
    11.14.2014 13:16:52.85 w3wp.exe (0x1B84)
    0x0770 SharePoint Foundation
    General 8e2s
    Medium Unknown SPRequest error occurred. More information: 0x8007054f
    fd09cc9c-cf7b-1059-3bcb-0e44d3bf3743
    11.14.2014 13:16:52.85 w3wp.exe (0x1B84)
    0x0770 SharePoint Foundation
    General aix9j
    High SPRequest.AddField: UserPrincipalName=, AppPrincipalName= ,bstrUrl=http://servername/sitecollection ,bstrListName={7F184ACA-48C3-4728-AF42-A12CB55941B4} ,bstrSchemaXml=<Field Type="Lookup" DisplayName="DocumentOwner"
    Required="FALSE" EnforceUniqueValues="FALSE" List="{57d71ec0-a996-4977-abf7-4cd4e0cc105c}" WebId="53a31862-077a-4031-8aad-7f2a43e33a46" ShowField="Title" UnlimitedLengthInDocumentLibrary="FALSE" Group="_QMS"
    ID="{ca4bc17d-bb96-4aee-bb96-e645c939a013}" ,grfAdd=18
    fd09cc9c-cf7b-1059-3bcb-0e44d3bf3743
    11.14.2014 13:16:52.85 w3wp.exe (0x1B84)
    0x0770 SharePoint Foundation
    General ai1wu
    Medium System.Runtime.InteropServices.COMException: An internal error occurred. (Exception from HRESULT: 0x8007054F), StackTrace:    at Microsoft.SharePoint.SPFieldCollection.AddFieldAsXmlInternal(String
    schemaXml, Boolean addToDefaultView, SPAddFieldOptions op, Boolean isMigration, Boolean fResetCTCol)     at Microsoft.SharePoint.ApplicationPages.AddFieldToContentTypePage.AddFieldToList(SPField fldSrc)     at Microsoft.SharePoint.ApplicationPages.AddFieldToContentTypePage.UpdateList()
        at System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument)     at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)     at System.Web.UI.Page.ProcessRequest(Boolean
    includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)     at System.Web.UI.Page.ProcessRequest()     at System.Web.UI.Page.ProcessRequest(HttpContext context)     at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
        at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)     at System.Web.HttpApplication.PipelineStepManager.ResumeSteps(Exception error)     at System.Web.HttpApplication.BeginProcessRequestNotification(HttpContext
    context, AsyncCallback cb)     at System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context)     at System.Web.Hosting.PipelineRuntime.ProcessRequestNotificationHelper(IntPtr rootedObjectsPointer,
    IntPtr nativeRequestContext, IntPtr moduleData, Int32 flags)     at System.Web.Hosting.PipelineRuntime.ProcessRequestNotification(IntPtr rootedObjectsPointer, IntPtr nativeRequestContext, IntPtr moduleData, Int32 flags)     at System.Web.Hosting.UnsafeIISMethods.MgdIndicateCompletion(IntPtr
    pHandler, RequestNotificationStatus& notificationStatus)     at System.Web.Hosting.UnsafeIISMethods.MgdIndicateCompletion(IntPtr pHandler, RequestNotificationStatus& notificationStatus)     at System.Web.Hosting.PipelineRuntime.ProcessRequestNotificationHelper(IntPtr
    rootedObjectsPointer, IntPtr nativeRequestContext, IntPtr moduleData, Int32 flags)     at System.Web.Hosting.PipelineRuntime.ProcessRequestNotification(IntPtr rootedObjectsPointer, IntPtr nativeRequestContext, IntPtr moduleData, Int32 flags)
    fd09cc9c-cf7b-1059-3bcb-0e44d3bf3743
    11.14.2014 13:16:52.85 w3wp.exe (0x1B84)
    0x0770 SharePoint Foundation
    General 8nca
    Medium Application error when access /_layouts/15/fldpick.aspx, Error=An internal error occurred. (Exception from HRESULT: 0x8007054F)   at Microsoft.SharePoint.Library.SPRequestInternalClass.AddField(String
    bstrUrl, String bstrListName, String bstrSchemaXml, Int32 grfAdd)     at Microsoft.SharePoint.Library.SPRequest.AddField(String bstrUrl, String bstrListName, String bstrSchemaXml, Int32 grfAdd)
    fd09cc9c-cf7b-1059-3bcb-0e44d3bf3743
    11.14.2014 13:16:52.85 w3wp.exe (0x1B84)
    0x0770 SharePoint Foundation
    Runtime tkau
    Unexpected System.Runtime.InteropServices.COMException: An internal error occurred. (Exception from HRESULT: 0x8007054F)    at Microsoft.SharePoint.Library.SPRequestInternalClass.AddField(String bstrUrl,
    String bstrListName, String bstrSchemaXml, Int32 grfAdd)     at Microsoft.SharePoint.Library.SPRequest.AddField(String bstrUrl, String bstrListName, String bstrSchemaXml, Int32 grfAdd)
    fd09cc9c-cf7b-1059-3bcb-0e44d3bf3743
    11.14.2014 13:16:52.85 w3wp.exe (0x1B84)
    0x0770 SharePoint Foundation
    General ajlz0
    High Getting Error Message for Exception System.Web.HttpUnhandledException (0x80004005): Exception of type 'System.Web.HttpUnhandledException' was thrown. ---> Microsoft.SharePoint.SPException: An internal error
    occurred. (Exception from HRESULT: 0x8007054F) ---> System.Runtime.InteropServices.COMException: An internal error occurred. (Exception from HRESULT: 0x8007054F)     at Microsoft.SharePoint.Library.SPRequestInternalClass.AddField(String bstrUrl,
    String bstrListName, String bstrSchemaXml, Int32 grfAdd)     at Microsoft.SharePoint.Library.SPRequest.AddField(String bstrUrl, String bstrListName, String bstrSchemaXml, Int32 grfAdd)     --- End of inner exception stack trace ---  
      at Microsoft.SharePoint.SPGlobal.HandleComException(COMException comEx)     at Microsoft.SharePoint.Library.SPRequest.AddField(String bstrUrl, String bstrListName, String bstrSchemaXml, Int32 grfAdd)     at Microsoft.SharePoint.SPFieldCollection.AddFieldAsXmlInternal(String
    schemaXml, Boolean addToDefaultView, SPAddFieldOptions op, Boolean isMigration, Boolean fResetCTCol)     at Microsoft.SharePoint.ApplicationPages.AddFieldToContentTypePage.AddFieldToList(SPField fldSrc)     at Microsoft.SharePoint.ApplicationPages.AddFieldToContentTypePage.UpdateList()
        at System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument)     at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)     at System.Web.UI.Page.HandleError(Exception
    e)     at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)     at System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
        at System.Web.UI.Page.ProcessRequest()     at System.Web.UI.Page.ProcessRequest(HttpContext context)     at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()    
    at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
    fd09cc9c-cf7b-1059-3bcb-0e44d3bf3743
    I've tried to make changes to the parent site content type, however those changes to not push down to the library in question. The missing columns have varied types (single line of text, lookup, managed metadata and so forth). All of these content types &
    site columns were created through the user interface of SharePoint.
    Can anyone help me with any ideas what has happened and/or how to fix this problem?

    Hi Hans,
    As I understand, you have custom content type in 3 libraries, while the issue occurs to the columns in this content type.
    I wonder if the issue occurs to other two libraries as well?
    From your description, "I've tried to make changes to the parent site content type, however those changes to not push down to the library in question", do you mean that changes in content type are not reflected to the list which is added to this
    content type. If that is the case, I'd suggest you recreate content type.
    If the site content type works well in other two libraries, please create a new library and add this content type. If it works well, then move the list content to this new list.
    Regards,
    Rebecca Tu
    TechNet Community Support

  • How to set the column order of a sealed column in a custom Content Type for the new item form NewDocSet.aspx?

    Dear SharePoint Developers,
    Please help.
    I need to know How to set the column order of a sealed column in a custom Content Type for the new item form NewDocSet.aspx?
    I think this is a "sealed column", whatever that is, which is  shown in SPD 2013 as a column of content type "document, folder, MyCustomContentType".
    I know when I set the column order in my custom Content Type settings page, it is correct.
    But, when I load the NewDocSet.aspx page, the column order that I set in the settings page is NOT used for this "sealed column" which is bad.
    Can you help?
    Please advise.
    Thanks.
    Mark Kamoski
    -- Mark Kamoski

    Hi,
    According to your post, my understanding is that you want to set the column order of a sealed column in a custom Content Type for the new item form NewDocSet.aspx.
    Per my knowledge, if you have Content Type management enabled for the list or library (if you see a list of content type with the option to add more), the display order of columns is set for each content type.
    Drill down into one of them and you'll see the option under the list of columns for that content type.
    To apply the column order in the NewDocSet.aspx page, you need to:
    Select Site Settings, under Site Collection Administration, click Content type publishing. In the Refresh All Published
    Content Types section, choose Refresh all published content types on next
    update.
    Run two timer jobs(Content Type Hub, Content Type Subscriber) in central admin(Central Administration--> Monitoring--> Review timer jobs).
    More information:
    http://sharepoint.stackexchange.com/questions/95028/content-types-not-refreshing-on-sp-online
    Best Regards,
    Linda Li
    Linda Li
    TechNet Community Support

  • How to change content-type in receiver mail adapter

    Hi,
    I have receiver mail adapter for sending XML file as attachment in the mail. My partner expects to receive mail with content-type: text/xml, but XI sends Content-Type: application/xml. Please advise how I can change content-type to text/xml.
    Thank you
    Lev

    hi,
    try MessageTransformBean
    Transform.ContentType
    http://help.sap.com/saphelp_nw04/helpdata/en/57/0b2c4142aef623e10000000a155106/content.htm
    also shown in my blog:
    /people/michal.krawczyk2/blog/2005/11/23/xi-html-e-mails-from-the-receiver-mail-adapter
    Regards,
    michal
    <a href="/people/michal.krawczyk2/blog/2005/06/28/xipi-faq-frequently-asked-questions"><b>XI / PI FAQ - Frequently Asked Questions</b></a>

  • Syncing behaviour/direction of individual content type in iTunes

    Hi fellows. I wish to clarify my understanding of how iTunes sync (overwrite) the individual content type on an iPod. The scenario is: when I sync an iPod with another new library, typically we will be prompted with the warning message, "+this iPod is currently synced with another library. If you choose to sync it with this library, all the existing content will be replaced with the content on this library+" (or some similar warning). My doubts are as follows:
    Qn1. Am I right to say that, even if I click "okay" to that warning message above, the actual "replacing" +doesn't start immediately+ as iTunes will wait for the user to select what subset of content he wants, & more importantly, for the user to click the "sync" button (near the bottom right of iTunes) before the actual erasing and replacing begins?
    Qn2. Does iTunes treat each content type as separate libraries, i.e. in the context of "approving" iTunes's demand to overwrite the existing content on the iPod with content from iTunes own, current library, if the "sync" checkbox on the other content type's tab is unchecked, will that existing content type stored on the iPod be excluded from the erasing and replacing?
    I understand this may be very confusing, so allow me to illustrate my question with a specific example:
    http://img.photobucket.com/albums/v489/ralliart12/blog180610/iTunes%20library%20revisit/initially_unchked_for_unpairedipod.png
    If I choose to sync music from the current iTunes library to an iPod that was previously synced with another library, and I approved iTunes to go ahead and replace the existing music on the iPod with the music from the iTunes library but I have the "Sync Apps" checkbox unchecked, will the apps +on the iPod+ be wiped? Similarly, if the "sync movies" checkbox on the Movie tab is unchecked, will the movies on the iPod be wiped when I allow iTunes to replace the music library on the iPod with the songs from iTunes?
    Qn2a. If iTunes treat syncing each content type libraries on their own, are music and movies treated as one library?
    Qn2b. What determines the initial "checked/unchecked" status of each of those check-boxes in the diagram above when an iPod that is synced with another library, is connected to iTunes for the first time?
    In fact (this paragraph is not a qn; just a comment) I find the manner in which this is handled in iTunes to be inelegant. E.g. suppose in the context of qn2 iTunes treat all content type libraries as one unified library, and once I give iTunes the permission to erase the songs on the iPod with the songs from its current library but say I don't wanna replace the apps on the iPod with the apps from this iTunes library; neither do I wish to replace the podcasts on the iPod with the podcasts on this iTunes library. I can goto the "Apps" tab and uncheck "Sync Apps", but I could not goto the "Podcasts" tab and uncheck "Sync podcasts" without committing/applying the updated aps syncing conditions first. So if the "Sync podcasts" checkbox was checked for some reason, the podcatss on the iPod will be replaced with podcasts from the iTunes library without my "permission".
    For those who are veterans with this sync-ing behaviour stuff, I sincerely hope to gain some insight as to how iTunes behaves (in these contexts above). Thanks n advance.

    I'm going to duck out of giving you a definitive answer on the grounds that I don't really know and I don't have the resources or time to check the details. However I may still have something to offer. As you've observed the process is more than a little obscure, but the safest option is to assume that if you attempt to move your device from syncing with one library to syncing with another you will lose all the existing media content on the device.
    The exact details will ultimately depend on the type of device. For example, while many can be *manually managed* with more than one library the iPhone (and I think the Shuffle) can only take content from one library even in this mode. More particularly when you manually add content to an iPhone every file that you have on the device will be compared with it's "original" in your library and if there isn't a matching file the one on the device will be removed. In contrast on a "synced" iPod Classic you could (not that it's a good idea) remove larger physical files such as movies once they've been synced to the device and, although iTunes might issue a warning, it will not remove the existing files as long as there are still coresponding entries in the library.
    With the exception of the transfer of purchased content all sync operations are strictly library to device. iTunes will have a good go at throwing away your data given half a chance. For this reason I strongly urge that you make backups of your library and media files and certainly never rely on the device to hold the only copy of any of your precious files.
    It's not clear why you want this information, but if you're determined to tease out the finer details then it shouldn't be too hard for you to create a number of small distinct test libraries and actually try it out for yourself. If the issue is that you simply want the freedom to update your device from more than one computer then this is perfectly feasible. Simply put your entire library on an external (preferably host powered) usb drive and take it with you. I take one further step and sync my library with my local drive at each end using SyncToy 2.1 so that I end up with 3 mutual backups for the same library, one at home, one at work, and the one I carry between them. I can open any of the three libraries on my PCs or connect the portable version to any computer running the same build of iTunes to update any of my devices without losing any content.
    tt2

  • How to delete a custom columns from a content-type in Sharepoint Client object model

    I have a windows interface where I create a content-type and then create a column and adds that column to the content-type.
    //availableCT is my content-type where the column is present.
    //get all available fields within this content-type
    FieldCollection fieldColl = availableCT.Fields;
    clientContext.Load(fieldColl);
    clientContext.ExecuteQuery();
    foreach (Field field in fieldColl)
    //columnFromList is the column that is to be deleted
    if (field.InternalName.Equals(columnFromList))
    field.DeleteObject();
    clientContext.ExecuteQuery(); // this throws an exception
    // Additional information: Site columns which are included in content types or on lists cannot be deleted. Please remove all instances of this site column prior to deleting it.

    hi,
    you can use the below code to delete it
    using (ClientContext sourceContext = new ClientContext(cmdSpoSite))
    Web web = sourceContext.Web;
    sourceContext.Load(web);
    sourceContext.Load(web.AvailableContentTypes, type => type.Include(c => c.FieldLinks, c => c.Name));
    sourceContext.ExecuteQuery();
    List<ContentType> ExistingContentType = web.AvailableContentTypes.ToList();
    IEnumerable<ContentType> contentTypesList = ExistingContentType.Where(ct => ct.Name == "<ContentTypeName>");
    ContentType ctype = contentTypesList.ElementAt(0);
    IQueryable<FieldLink> flinks = ctype.FieldLinks.Where(f => f.Name == "<FiledName");
    foreach (FieldLink flink in flinks)
    flink.DeleteObject();
    ctype.Update(true);
    sourceContext.ExecuteQuery();
    The difference being in your code and above code is you are removeing fileds which is eventually is deleting site column but a site column cannot be deleted if is alreday being used. So you need to deled the FieldLink in content type taht way column is removed
    from content type but not from site column.
    Now if you want to delete site column you can use your code to deleted Field.
    Whenever you see a reply and if you think is helpful,Vote As Helpful! And whenever you see a reply being an answer to the question of the thread, click Mark As Answer

  • Required field in custom content type not required in custom list instance

    I have an issue with a custom SharePoint 2013 solution. Among other components, it consists of:
    a feature with several custom fields with different types, some of which are taxonomy fields,
    a feature with three custom content types using different sets of the custom fields with partially different configuration, e.g. whether they are required or not,
    a feature with a custom document library template and instance using two of the custom content types and a default picture library that is programmatically customized when the feature is activated, e.g. it is assigned the third custom content type.
    When deploying the solution and activating the feature, everything is set up correctly except a single taxonomy field for one of the doc lib's content types. It is defined to be required in both content types but indeed it does not show up as required for
    the default content type whereas everything works fine for the other. And it does not matter which of the two custom content types is defined first (= default) in the list template's schema.xml, the issue always occurs for the same taxonomy field in the doc
    lib's default content type. When I use the built-in Document content type as default, the field is required for both custom content types. However, using the Document content type is not an option.
    If you think this behavior is not strange enough: When the list content type's field is set required through the SharePoint UI, it becomes optional again when the list column is updated, e.g. its display name is changed.
    Any ideas?

    Hi,
    Thank you for your question.
    We are currently looking into this issue and will give you an update as soon as possible.
    Thank you for your understanding and support.
    Linda Li                
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Linda Li
    TechNet Community Support

  • New option to open custom Excel content type in Excel Web Access

    Hi,
    This question is specifically for Sharepoint Online if that affects the possible solution.
    I would like a custom content type with Excel template to open up in Excel Web Access when a library's New>"My Content Type" option is chosen.  I have configured the content type (deriving from "Document"), pointed it to the spreadsheet
    template I've uploaded, added the content type to the library and set the library to "Open documents in the browser".
    However when I choose the new option for the content type it always opens it in the Excel desktop client.  If I then save the document to the library, then it does view and edit in Excel Web App after that.
    Is there any way for the initial "New" Excel document to start editing in Excel Web App?
    Thanks in advance,
    Peter

    Make sure Office 2011 is fully updated. It shouldn't have a problem opening those documents.
    When I open a 97 - 2004 workbook, it states that it needs to be converted. That may be what is crashing on your copy of Office.
    Have you tried creating a new account and see if you can open them there.

  • Deleting sharepoint list content type Fields

    Hi
    Please tell me the code for deleting all the fields inside content type fields..This is my code i used,but its not deleting the fields.
     SPSite spsite = new SPSite("http://ghfjhhk18:8001");
                SPWeb web = spsite.OpenWeb();
                web.AllowUnsafeUpdates = true;
                SPList list = web.Lists["Test"];
                SPContentTypeCollection cts = list.ContentTypes;
                SPContentType ct = cts["Item"];
               // ct.FieldLinks.Delete("Expires");
                //ct.Update();
                SPFieldCollection contentTypeFieldCollection = ct.Fields;
                foreach (SPField spField in contentTypeFieldCollection)
                    if (ct.Fields.ContainsField(spField.Title))
                        //SPFieldLink fieldLink = new SPFieldLink(spField);
                        ct.FieldLinks.Delete(spField.Title);
                    //myContentType = null;
                ct.Update();
                web.AllowUnsafeUpdates = false;
            }but this code is not deleting the fields..
    pls help me as soon as possible.
    One friend told me to do for loop in reverse..but how can i accomplish that

    Hi,
    Please refer the below code snippet which may help you to fix your issue. If not please refer the below links also
    http://ptsharepoint2010.blogspot.in/2011/12/programmatically-remove-fields-from.html
    http://www.c-sharpcorner.com/uploadfile/54db21/delete-field-content-type-in-sharepoint-2010-programmaticall/
    using (SPWeb web = site.OpenWeb())
    SPList spList = web.Lists["<ListName>"];
    SPContentTypeCollection spCTS = spList.ContentTypes;
    SPContentType spCT = spCTS["YourContentType"];
    spCT.FieldLinks.Delete("YourField");
    spCT.Update();
    If its not helping you, please let us know
    Sekar - Our life is short, so help others to grow
    Whenever you see a reply and if you think is helpful, click "Vote As Helpful"! And whenever
    you see a reply being an answer to the question of the thread, click "Mark As Answer

  • SharePoint 2007 - Content Type Usage

    My question relates to Content Type Usage.  I am helping to develop a customer facing SharePoint site template for my company.  The main purpose of the site is to track the ERP Software Implementation process from start to finish.
    I created a new task list which includes all the stages and activities within the project schedule of the implementation.  I then created a calendar View of this task list so that customers can view it in calendar form. 
    The issue that I am running into is that the Task List Item Content Type doesn't include the All Day Event column and so the items on the calendar view of the task list are not displaying properly (they end the day before vs the day of).  I found that
    I need to add the Event Content Type in order to utilize the All Day Event column.  I added the Event Content Type and now have found that's it's an either/or situation.  I can either create a New Event or a New Task.
    Long question short, is there a way that I can "merge" content types so that the Task content type includes the All Day Event column?

    Columns form part of content types, which you know.  What isn't clear is that there is a _hidden group of columns that don't appear in the SharePoint GUI.  The All Day Event is one of them.  If you were to download
    SharePoint Manager 2007 you could find the property and change it's group.  Here's a screenshot of what you'd need to change
    You'd navigate something like Farm --> Services --> Web Applications --> <Your Web App> --> <Site Collection> --> Fields.
    I normally move items from the _Hidden group to the Custom Columns grouping. This will then make it available for addition within the Content Type that you've made.
    Hope that helps.
    Steven Andrews
    SharePoint Business Analyst: LiveNation Entertainment
    Blog: baron72.wordpress.com
    Twitter: Follow @backpackerd00d
    My Wiki Articles:
    CodePlex Corner Series
    Please remember to mark your question as "answered" if this solves (or helps) your problem.

  • How to Enforce Sharepoint 2013 content type validation rules when modifying document using Word 2013

    Good day,
    I have two date columns (Start Date and End Date) in a content type in Sharepoint 2013.  A file library uses this content type.
    In the document template I have the two dates (Start Date and End Date) showing in the Document Panel.  I can edit them well enough and they show in the document correctly.
    In the content type I have validation rules that the End Date must be greater than the Start Date. 
    The question is, how can I enforce this validation on the client side in Word.  Is there anyway to achieve this?
    The user will not have access to change the document properties in Sharepoint. (Not my call)
    Thank-you!

    The "panel" is called the Document Information Panel in SharePoint. You can customize this using InfoPath from the page where you created / edited your Content Type. Go to Settings, Site Settings Content Types, edit your content type, click Document
    Information Panel and then click "Edit this template". In InfoPath you can create a Rule to enforce your dates.
    This may require the Enterprise Edition of SharePoint to support the InfoPath Forms Services.
    Mike Smith TechTrainingNotes.blogspot.com
    Books:
    SharePoint 2007 2010 Customization for the Site Owner,
    SharePoint 2010 Security for the Site Owner

  • Content Type Word Templates

    Dear all,
    I have a word template with a header containing the total numbers of pages. It happens that on the first page, the total number of pages would not update. It seams this is a known bug. I found a solution for this which was to use a macro that would force
    the update.
    It worked fine in my server. The problem was when I deployed to another server (another farm), the header in the first page would again not update.
    I have one of two questions: How do you solve the fact that the total number of pages is not updating in the first page without macros, and/or in case of using a macro, how will you make them work as a template in a content type.
    Thanks in advance.
    Best regards,
    GS
    Gonçalo

    In principle, writing macro's is not related to sharepoint, although I have seen situations where macro's weren't able to cope with web scenarios, causing problems once published in sharepoint. I would advise you to ask this question in a Word macro forum
    AND post of the code you're using, it will give you a better chance at finding the solution.
    Kind regards,
    Margriet Bruggeman
    Lois & Clark IT Services
    web site: http://www.loisandclark.eu
    blog: http://www.sharepointdragons.com

Maybe you are looking for

  • Verizon FIOS what a horrible experience​!

    God I feel so appalled and disappointed at Verizon​ FIOS beyond disbelieve. I had been a Verizon customer for several years and sadly the customer service has gone down the drain in recent years. My biggest dilemma started after some of the channels

  • Burning movies (.avi) to dvd

    well what i need to do is burn a .avi movie onto a dvd so that i can watch it on my dvd player in my livingroom. i asume i need a conversion program to convert the .avi to some format of which i dunno. then what do i need to burn the movie onto a vie

  • Edition of a cisco .cfg file

    Hi, I would like to edit .cfg configuration file of Cisco SLM2008. However, I can't read the file because I don't have a good editor(.cfg is a binary file). Someone can help me? Thanks!

  • Bridge is running slow

    I am editing on an ASUS G75 Laptop with 16 gig ram, I7 chip and 2 SSD drives. Bridge is so slow that I now have to use Windows Explorer. How about that?

  • Syncing versus streaming

    I bought the apple TV with the larger hard drive but now I am questioning why. I see no difference in streaming versus syncing. Is there a subtle advantage that I am missing. Its not like once synched you can delete the file from your itunes. Can you