Posts

Showing posts from November, 2017

Search api in SharePoint

Image
Search api in SharePoint HTML Code -  <div id="searchDiv">          <b>Search For</b>          <input type="text" id="searchTerm" />          <input type="button" id="btnSearch" value="Search" onclick="searchAppWeb()" />      </div>   <div id="SearchResultsDiv"></div>  Custom Code - <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script> <script type="text/javascript"> var html;  function searchAppWeb() {        debugger;     //Get the Search Term from textbox      var searchTerm = $("#searchTerm").val();       console.log(searchTerm);     //REST API query URL      var queryUrl = _spPageContextInfo.webAbsoluteUrl + "/_api/search/query?querytext='" + searchTerm + "'";;       console.log(queryU

Embed an RSS feed into your SharePoint site

Image
Steps to add RSS feed into your SharePoint Site Step 1- Obtain the RSS feed URL of the Site you want to get feeds on SharePoint Page by Clicking on below icon. Step 2- Insert RSS Viewer Web Part into the page. Step 3- Configure RSS Viewer Web Part. Step 4- Your Feeds are Ready.

Creating a flow in SharePoint Online

Image
Steps to Create a Flow in SharePoint Online Document Library 1.Go to SharePoint Online document library and click on Create a flow. 2.Click on see more templates to explore available templates.  3.In this case I am choosing the below template.  4.Now create the flow. 5.Now add documents to One drive for business. 6.Now they are also available to SharePoint document library.

Adding a tab in MS Teams Office 365

Image
How to add a tab in MS Teams Step 1 - To open MS Teams,Login to your Office 365 account, go to App Launcher and Choose MS Teams. Step 2 - Click on (+) icon to add a tab. Step 3 - Choose a tab source from available resources, here I am selecting SharePoint as I want to add tab of a SharePoint site’s Document Library. Step 4 - Select the SharePoint Site you want to add. Step 5 - Select the document library you want to add. Step 6 - Name your tab and save it. Step 7 - Here is your SharePoint Document library tab.

How To Enable Anonymous Access in SharePoint

Image
How to Enable Anonymous Access in SharePoint 2010 1.Go to Central Administration, under Application Management, click on the Manage web applications. 2.Make sure you select the site you want to enable anonymous access and click on the Authentication Providers icon. 3.On the Authentication Providers pop-up window click on the Default zone. 4.Under Edit Authentication, check Enable anonymous access and click Save. 5.Going back to Web Application Management click on the Anonymous Policy icon. 6.Under Anonymous Access Restrictions select your Zone and set the Permissions to None – No policy and click Save. 7.Now, web application will allow anonymous access to be set. So, navigate to your top level site collection for the web application. Click the Site Actions > Site Settings. Under Users and Permissions click Site permissions.

SharePoint Migration Tool

Image
SharePoint Migration Tool Announced By Microsoft Microsoft has announced a new migration tool which is free, simple & fast for migrating on-premises content (SharePoint 2013 & File shares) to SharePoint Online or OneDrive in Office 365. The tool can be used by all O365 users, you do not need to be a global administrator to run the tool. Instead you only need read access to the source data and write access on the destination. The tool is able to migrate smaller as well as large data batches and execute them in bulk. Requirements Before you begin, check the requirements prescribed by Microsoft. Recommended requirements for best performance CPU - 64-bit Quad core processor or better RAM - 16 GB Local Storage - Solid state disk: 150 GB free space Network card - 1 Gbps Operating system - Windows Server 2012 R2 or Windows 10 client .NET Framework 4.6.2 Steps to use SharePoint Migration Tool Step 1: Click on Sign in button to proceed next. Ste

Crawling in SharePoint

Image
In SharePoint 2010 there were two crawl types, “Full Crawl” and “Incremental Crawl”, whereas in SharePoint 2013 they have introduced a new crawl type named “Continuous Crawls” that keeps the content up to date. Continuous crawls are enabled only for the Content Sources that use the “SharePoint Sites” content source type. If a full crawl or incremental crawl is running then you will not be able to start a new crawl for the same content source until the old crawl is completed whereas multiple continuous crawls can run at the same time. All contents will be up to date because of continuous crawl. Types of Crawling There are the following 3 types of Crawling: 1.Full Crawl where the entire content will be crawled. This is time consuming and usually takes 30 minutes for a 1 GB of content (no 2 crawls can be in parallel). 2.Incremental Crawl only crawls content modified since the last crawl (no 2 crawls can be in parallel). 3.Continuous Crawl can be configured to start at regular

Create a list or document library using JSOM in SharePoint online or SharePoint 2013

Image
We can create a list or a document library using custom code, there may be several scenarios where we need to implement this using custom code. HTML Code - <storng><span>Please Entry Document Library Name</span></storng><br> <input type="text" id="txtDocLibName"><br>             <input type="button" id="btnCreateDocLib" value="Submit"> Custom Code - $(document).ready(function() {      $("#btnCreateDocLib").click(function () {                          createDocLib();        });  }); function createDocLib() {                  context = SP.ClientContext.get_current(); web = context.get_web(); list = web.get_lists(); docLibCreation = new SP.ListCreationInformation();  docLibName=document.getElementById("txtDocLibName").value; docLibCreation.set_title(docLibName); docLibCreation.set_templateType(SP.ListTemplateTy

Hide Save button in New and Edit form in SharePoint 2013 list using JavaScript and CSS

Image
There are several cases where we need to hide save button from a SharePoint List ribbon, hence to achieve this we can write a custom code to hide save button We have written the JavaScript and css code to hide the Save button. For this Edit the page and then Insert a Script editor web part into it. Then write the below code inside the script editor web part and Save the page. <script type="text/javascript">     function hideEdit() {         var edit = document.getElementById("Ribbon.ListForm.Edit.Commit.Publish-Large");         edit.style.display = "none";     }            _spBodyOnLoadFunctionNames.push("hideEdit"); </script>  Output -

Embed a Yammer Group feed into a SharePoint site

Image
For SharePoint Online and SharePoint Server 2013, you can easily add a Yammer feed to a SharePoint with Yammer Embed. You can add several types of feeds to a SharePoint page, including: Group feed - Show the latest conversations in a specific Yammer group. My Feed - Show each user their personal feed with items relevant to them. Open graph object feed - Start a discussion about an object, like a web page. Add a group feed 1.In Yammer, go to the group that you want to embed. Locate the Access Options section and select Embed this group in your site. 2.In your SharePoint site, choose Edit. 3.On the ribbon, choose Insert > Web Part and in the Categories list, select Media and Content > Script Editor. 4.In Add part to:, select where you want to add the web part, and then choose Add. 5.Locate your new script editor web part, and choose Edit Snippet. 6.Paste the script you copied from Yammer into the script editor web part. 7.Paste the script into the Script web

Sort and Search html table's data using DataTable.js in SharePoint

Image
Sort and Search html table's data using DataTable.js Features of DataTable.js There are many features and advantage of Datatable.js. You can use it anywhere, using simple jQuery. If you are using DataTable.js, you can apply these features, which are given below. Inline Sorting. Sorting on each column. Pagination. Filter. Filter on each column. Global Search. Stylist Look . Dynamic column binding. Bind Json data. Language Independent.  Step 1. Create a SharePoint Page and add Script Editor Web Part to it.  Step 2. Paste the following Code and Save the page-   <script type="text/javascript" src="https://code.jquery.com/jquery-1.12.3.js"></script> <script type="text/javascript" src="https://cdn.datatables.net/1.10.12/js/jquery.dataTables.min.js"></script> <link rel="stylesheet" href="https://cdn.datatables.net/1.10.12/css/jquery.dataTables.min.css" type="text/css&quo

Corporate Directory in SharePoint Online using Search Results Web Part and a Display Template

Image
1.Create a blank page and add following web parts to it-   a.Search Box   b.Search Results   c.Refinement  2.Set Query as follows in Search Results web part. 3.Create a display template of your Choice and select it as follows. Note: you can create a display template of your choice and then add it to display template gallery.   4.Here is you corporate directory.

Disable Drag and Drop files option in SharePoint 2013 Document Library

1.Open the document library,edit it and add script editor web part to it. 2.Add the below Code to  script editor web part. <script type="text/javascript"> // Stop Drag & Drop  ExecuteOrDelayUntilScriptLoaded(function () {  g_uploadType = DragDropMode.NOTSUPPORTED;  <code>SPDragDropManager.DragDropMode = DragDropMode.NOTSUPPORTED; }, "DragDrop.js"); </script> <style> #Hero-WPQ2 { display: none ! important; } </style> 3.It should work fine now.

Query Suggestion feature in SharePoint Online

Image
Step 1: Login into SharePoint online environment as a site collection admin. Navigate to Search Administration,Click on Query Suggestion Settings. Step 2: Ensure that the Show Search suggestion is checked on. Click Import from text File Step 3: Open Notepad and type whatever you want to appear as query suggestions. Kindly ensure that you save it in UTF -8 Format. Step 4: Choose Browse and Select the file and Click Ok. Step 5: It will took a few hours to setup.