Posts

Showing posts from April, 2017

How to update a Hyperlink field using REST API in SharePoint 2013

below code snippet helps to update the Hyper link filed in SharePoint 2013 using REST API $.ajax     ({         url: _spPageContextInfo.webAbsoluteUrl + "/_api/site/rootweb/lists/GetByTitle('ListName')/items",         type: "POST",          headers:         {             "Accept": "application/json;odata=verbose",             "Content-Type": "application/json;odata=verbose",             "X-RequestDigest": $("#__REQUESTDIGEST").val(),             "X-HTTP-Method": "POST"         },          data: JSON.stringify         ({             __metadata:             {                 type: "SP.Data.ListnameListItem"             },              Link:{Url: 'http://google.com', Description:'Google'}         }),         success: function(data, status, xhr)         { // alert('success');                   },         error: function(xhr

SharePoint 2013 task approval form redirect to EditFrom from DispFrom

One Click Approval for SharePoint 2013 Tasks: 1. Open the task list in SharePoint Designer and create a new List Form 2. In the Create New List Form window, set the Filename as “RedirectToEditForm”, the type as Display, and check “Set as the default for the selected type”. Also pick your Workflow Task content type. 3. Open the Form in Designer so that the code is displayed, then click the “Advanced Mode” button in the ribbon bar. This will open the entire page for edits. 4. Insert the following javascript directly after the line <asp:Content ContentPlaceHolderId="PlaceHolderMain" runat="server"> (this is around line 15) ? 1 2 3 4 5 6 7 <script type= "text/javascript" >      <!--      var origUrl = window.location.toString();      var editUrl = origUrl.replace( "RedirectToEditForm" , "EditForm" );      window.location = editUrl;      //--> </script> 5. Save the fo

SharePoint 2013 get Person or Group field value(s) using REST API

Below  Code snippet for fetching the Person or Group field value by using REST API.  $.ajax ({                url: _spPageContextInfo.webAbsoluteUrl + "/_api/web/lists/GetByTitle('Produccts')/items('"+ietmID+"')?$select=Title,Flag,Approver/Title&$expand=Approver",         type: "GET",         headers:         {             "Accept": "application/json;odata=verbose",             "Content-Type": "application/json;odata=verbose",             "X-RequestDigest": $("#__REQUESTDIGEST").val(),             "IF-MATCH": "*",             "X-HTTP-Method": null         },         cache: false,         success: function(data)         {             var listiteminfo = data.d;       var itemTitle=listiteminfo.Title;       var approvers="";       var approverResults=listiteminfo.Approver.results;             for (var j = 0

SharePoint 2013 Interview questions

SharePoint 2013 is a big Change from SharePoint’s earlier Versions. With the Introduction of new UI, new development model and a lot of Performance Improvement Capabilities, SharePoint 2013 is a huge hit among SharePoint Communities and Business. To grab a job as an expert however can be Challenging. An ideal candidate is expected know a ton of new features and a good idea about where and when to use them. In this SharePoint 2013 Interview questions series we will look at Administrator,IT Pro and Development SharePoint 2013 Interview questions and answers that could help you get started. A huge collection though will be posted soon as an ebook. Q1: What is new SharePoint 2013? Ans:  SharePoint 2013 is the next Version of Microsoft’s famous Collaboration and Document Management Software called SharePoint.This Version follows SharePoint 2010 that was released back in May 2010.SharePoint 2013 was released (as Preview and RTM versions) with some new & exciting features such as Real

SharePoint 2013 Interview Questions and Answers

Search - Q1. What are the New Changes in Search? Ans:  In SharePoint 2013 the best of two Search Engines "SharePoint Search" and “FAST Search Server for SharePoint” was combined to make one Search Engine that would provide greater redundancy and for better scalability. For more Info on Search architecture see  Search 2013 Architecture Q2. What is Continuous Crawl? Ans:  A new Crawl Option "Continuous crawls" has been Introduced in search's Crawl Schedule Category to help keep the search index and search results as fresh as possible.Continuous crawls run every 15 minutes by default.  Q3. What are Display Templates? Ans:  To eliminate the fact that the designers and power users needed to modify the XSLT each time they needed a particular look and feel in SharePoint, a new concept of Design Templates has been introduced. Each Display Template consist of two files an HTML file (.html) and JavaScript File (.js). For more Info on Display templates see  Display Templa