Saturday 19 July 2014

SharePoint Result Source use SPContentType over ContentTypeId

When you are working with SharePoint result source query, don't use "ContentTypeId", it will have some problem while deploying in different environments.
Use "SPContentType".
Reason:
ContentTypeId is GUID based value, GUID will be different for each environment.
SPContentType is Text based value, this name will be same across the environments.