HOW TO: Access list item in WorkflowStarting event receiver when “Required documents to be checked out” option is set to “Yes”

This post is a contribution from Charls Tom Jacob, an engineer with the SharePoint Developer Support team. Scenario: You have a SharePoint library in which “Require documents to be checked out before they can be edited?” is set to Yes. You have a WorkflowStarting event receiver associated to the list, with the following very basic…

0

HOW TO: Allow anonymous users to add items to SharePoint list using client object model

This post is a contribution from Charls Tom Jacob, an engineer with the SharePoint Developer Support team. This blog is based on a support ticket I handled recently. The requirement was to let anonymous users add items to a SharePoint list/library using client side object model(JavaScript). Here are the steps needed to implement this. 1….

1

Could not establish trust relationship for SSL/TLS secure channel

This post is a contribution from Amy Luu, an engineer with the SharePoint Developer Support team. You can get the following error when SharePoint communicates to an external service via HTTPS either within the same server or a different server. Could not establish trust relationship for the SSL/TLS secure channel, or Remote certificate is invalid…

3

Enabling ScriptManager PageMethods doesn’t work in some scenarios in SharePoint 2013

I worked on a case where the problem was that PageMethods won’t execute from within a SharePoint 2013 application page (page deployed to the _layouts folder).  To replicate the problem, I had a custom master page deployed through a VS 2012 solution with the following definition within the <body/> element. <asp:ScriptManager id="ScriptManager" runat="server" EnablePageMethods="true" EnablePartialRendering="true"…

7

Implementing a Custom Security Pre-Trimmer with Claims in SharePoint 2013

This post is a contribution from Adam Burns, an engineer with the SharePoint Developer Support team. This post repackages examples that are already out there on MSDN, but brings two examples together and provides some implementation details that may not be obvious in the existing articles. I also tried to leave out confusing details that…

11

HOW TO: Implement a custom iFilter in SharePoint 2013

This post is a contribution from Kevin Jacob Kurian, an engineer with the SharePoint Developer Support team. In SharePoint 2010, we had an option of implementing custom iFilter for files (like PDFs) so that we can see the search results from these files as well.  SharePoint 2013 has this feature of crawling PDF files in-built. …

12

Migrating SharePoint 2010 workflow custom activity to SharePoint 2013

 This post is a contribution from Vitaly Lyamin, an engineer with the SharePoint Developer Support team. For SharePoint 2010 custom activities to work in SharePoint 2013, the “authorizedType” node needs to be defined in a new sub-section “targetFx” under the “authorizedTypes” section. If this is not changed, an error will be encountered: ‘The type or…

3

HOW TO: Add properties to SPWeb property bag using JSOM in SharePoint 2013

This post is a contribution from Jaishree Thiyagarajan, an engineer with the SharePoint Developer Support team. Here’s the sample. Create a simple HTML page and add the below scripts. <html>   <head> <title></title> <script src="http://ajax.aspnetcdn.com/ajax/4.0/1/MicrosoftAjax.js" type="text/javascript"> </script> <script type="text/javascript" src="http://ajax.aspnetcdn.com/ajax/jQuery/jquery-1.7.2.min.js"> </script> </head> <body> <script type="text/javascript">   $(document).ready(function () {     var hostweburl = "http://siteURL/";…

3