[Sample Of August 6] Remove users across all sitecollections

Aug. 6 Sample : http://code.msdn.microsoft.com/Remove-users-across-all-0629271d This code sample demonstrates how to remove users across all site collections. First of all, we need to specify which users will be removed. Then, recursively looping all sites to get sub-sites and then remove the users.   You can find more code samples that demonstrate the most typical programming…

0

[Sample Of May 26th] How to query multi people picker field in SharePoint list using REST query

  Sample Download : http://code.msdn.microsoft.com/How-to-query-multi-people-a3e8b35a This code snippet  will show you how to query multi people picker field in SharePoint list using REST query.  •  Get JSON data of the SharePoint Task Item. •  Get the multi people field of the item. •  Use  for or  Foreach to get every AssignedToId. You can find more code…

0

[Samle Of May 2nd] How to get Sharepoint User objects from AssignedTo field by CSOM

  Sample Download : http://code.msdn.microsoft.com/How-to-get-Sharepoint-User-8570319c This code snippet will show you how to get SharePoint User objects from AssignedTo field by CSOM.   You can find more code samples that demonstrate the most typical programming scenarios by using Microsoft All-In-One Code Framework Sample Browser or Sample Browser Visual Studio extension. They give you the flexibility…

0

[Sample Of Apr 17th] How to create MUI Language Switcher for SharePoint 2013

  Sample Download : http://code.msdn.microsoft.com/How-to-create-MUI-Language-8507ab26 This code sample illustrates how to create Multilingual User Interface (MUI) Switcher by using HTTP Module. In the PreRequestHandlerExecute method of our custom Module, we will check the user’s language preferences, then add the languages to the Accept-Language of request header. You can find more code samples that demonstrate the most…

0

[Sample Of Sep 17th] How to develop a custom content type with associated workflow in SharePoint

  Sample Download :  CS Version: http://code.msdn.microsoft.com/How-to-develop-a-custom-454ac947 VB Version: http://code.msdn.microsoft.com/How-to-develop-a-custom-a1b6bddf This sample code will demonstrate how to develop a custom content type with a workflow associated. In a real world scenario, customers not only need to structure the data but also need to process the data, so develop a custom content type with workflow associated…

0

[Sample Of Jun 2nd] Claim-aware WCF WebService for SharePoint

  Sample Download : CS Version: http://code.msdn.microsoft.com/CSSharePointCallClaimsAware-8f2c3913 VB Version: http://code.msdn.microsoft.com/VBSharePointCallClaimsAware-f26683fc This sample code will demonstrate how to call a Claims-Aware WCF Service from a SharePoint 2010 Claims Site. We use Service Application Framework (SAF) to host WCF Web Service in IIS.  On the caller’s side, we need to use CreateChannelActingAsLoggedOnUser method to send the Claim…

0

[Sample Of Apr 3rd] Pagination using SPquery in SharePoint

  Sample Download : CS Version: http://code.msdn.microsoft.com/CSSharePointPaginationWebPa-b44c8073 VB Version: http://code.msdn.microsoft.com/VBSharePointPaginationWebPa-2d7b2900 This sample code demonstrates how to implement pagination through SPquery. The sample will fetch the list items from a specified web site. You can set how many pages have to be shown for our custom pagination. For e.g., if you have 100 items in a…

1

[Sample Of Mar 14th] Use CreateTaskWithContentType in SPS

  Sample Download : CS Version: http://code.msdn.microsoft.com/CSSharePointTaskWithContent-4cae6faa VB Version: http://code.msdn.microsoft.com/VBSharePointTaskWithContent-db5883de The code-sample shows how to use CreateTaskWithContentType activity in a SharePoint Visual Studio workflow.​ ​The CreateTaskWithContentType is an import activity in SharePoint visual studio workflow, it will  defines a workflow activity that is used to create a task item in a Microsoft SharePoint 2010 task…

0

[Sample Of Mar 3rd] Download document from SharePoint Document libraries

  Sample Download : CS Version: http://code.msdn.microsoft.com/CSSharePointDownloadDocumen-f19f0613 VB Version: http://code.msdn.microsoft.com/VBSharePointDownloadDocumen-f631317d This sample will demonstrate how to download the documents from SharePoint document libraries across site collection in an easy fashion. Our implementation ideas are as follows: add the OOTB document library name to a list if document library in this list will not be downloaded….

0

[Sample Of Feb 3rd] Show data with multiple value in SharePoint

  Sample Download : CS Version: http://code.msdn.microsoft.com/CSSharePointshowDataWithMul-cfca24df VB Version: http://code.msdn.microsoft.com/VBSharePointshowDataWithMul-f050be29 The sample will show you how to get data with multiplevalues Field in a site collection.Many users want to get data with multiple value fields (user-multi field, taxonomy field and so on) in site collection. In general, we can achieve it by using SPSiteDataQuery; however,…

0