This blog is about SharePoint, Office365 and Office Development

Popular Posts

Browsing Category " IA "

SharePoint 2013 Managed Properties not automatically created

According to TechNet article at http://technet.microsoft.com/en-us/library/jj613136(v=office.15).aspx SharePoint 2013 automatically generated crawled and managed properties given that the site column will have information stored and a full crawling has been completed successfully.

However, I encountered a case in which the Search service application failed to managed properties and create a invalid crawled properties. In my custom site columns definition elements.xml file I have a field called HTMLComments and the field schema was as below :

I notice that only crawled property has been created with a name HTMLCommentsOWS which not following the naming convention mentioned in the above link. as the field is HTML Field I expected to have automatically created crawled property named "ows_r_HTML_HTMLComments". I was clueless for a while and then I end up viewing the Schema for an OTB Field PublishingPageContent and it was as below


I notice that the SourceID  attribute is missing from my Field definition,I added the source Id attribute as below:


and run full crawling and I notice that the  crawling properties and managed properties has been created successfully.


Taxonomy Field Auto-complete behavior

In this post I will try to explain how the taxonomy field in SharePoint 2013 auto-completes the terms as you start typing. In order to figure this out enable developer tool and view the asynchronous request triggered as you type in the taxonomy field

An asynchronous call to the Taxonomy Internal service is triggered and try to get the suggestions based on the user input.
by looking at the asynchronous calls the below is the request triggered


 also in the below snapshot is the parameters sent along with the request


To check complete reference of the taxonomy internal service documentation check the link below

http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.taxonomy.webservices.taxonomyinternalservice_methods(v=office.14).aspx

It's 2010 version but it's still valid but I wonder why I can't find link to 2013 in  other versions drop down

Provisioning MutliUser SiteColumn SharePoint 2013

Have you ever tried to create a site column using a feature , how many times you searched for the correct  format and syntax , I've tried to add multiple Person column to a custom content type
and instead of googling and copy and paste the code I came up with another way to get the Field Schema without google help !

I created a dummy custom list

  • Add an App

  • Choose custom List


  • Type the list name in my case I Typed "TestList"


  • Check if the list has been created



  •  Go to List ->List Settings


  • Add New Column , Type PeopleMulti , Choose Person or Group



  • Choose allow multiple values, People Only



Using Power Shell type the below 2 lines to export the field schema to XML file 




here is the UserMulti field , don't forget to change the Field ID 

<Field Type="UserMulti"
      DisplayName="PeopleMulti" 
      List="UserInfo"
      Required="FALSE"
      EnforceUniqueValues="FALSE"
      ShowField="ImnName"
      UserSelectionMode="PeopleOnly"
      UserSelectionScope="0" 
      Mult="TRUE"
      Sortable="FALSE"
      ID="{87C0735C-394D-4783-BDAD-1C997EF2B9AF}"
      StaticName="PeopleMulti" Name="PeopleMulti"
       />

Note remove the source ID from the generated XML , you can use the same method to get any Field Schema to help you create Custom Content Type using Visual studio