Posts

Showing posts from December, 2020

SharePoint REST API

You can use below REST API to retrive diffrent details from sharepoint site,list and libraries,user and group inforamtion. Click Here to know more details about CRUD operations with REST API in SharePoint. URL Description /_api/web/lists/getbytitle('listname')/Items?$select=* Returns SharePoint list items with all columns data /_api/web/lists/getbytitle('listname')/Items?$select=ID,Title Returns SharePoint list items with all columns ID and Title /_api/web/Lists(guid'"+guid+"')/items Returns list item from sharepoint list GUID /_api/web/lists/getbytitle('listName')/ItemCount Returns SharePoint list items count /_api/web/lists/getbytitle('listname')/items(1) Returns SharePoint list items having ID equals to 1 /_api/web/lists/getbytitle('listname')/Items?$select=Title&$filter=Title eq 'Test1' Returns SharePoint list items havi...

Hide "Recurrence" & "All Day Event" from Event content type in SharePoint

Image
Problem : There is no direct solution to hide "Recurrence" & "All Day Event" from Event content type in SharePoint. Solution : Please follow below steps: Open list settings Open event content type Click on any field to edit like Category After URL will look like: https://SiteURL/_layouts/15/ManageContentTypeField.aspx?ctype=0x0102000BB2A452E0EAEC094E8B13A9632F02FC61&List=552574-bd3c-4855-a526-583f35b1231a&Field= Category &Fid=%7B6df9bd52%2D55050e%2D4a30%2Dbc31%2Da436678832a87d%7D Remove the "Fid" parameter and replace "Field" Parameter as either fAllDayEvent or fRecurrence . Now you can edit the field and make it hidden so it will not appear in any form. #RM #SharePoint #EventCalendar #EventContentType #Recurrence #AllDayEvent

Detect Browser Using Javascript

Get Browser Detect Browser Name In web application development with diffrent functionalty we need to check current browser. We can check browser name through below code through Javascript. Click on "Get Browser" button to retrive current browser name Get Browser #RM #Browser #BrowserName #JavaScript #DetectBrowser

SharePoint - CRUD Operations with REST API

Create Read Update Delete 1) SharePoint - Create New Record To insert a new record from user inputs to a SharePoint list, we need a REST API as a medium between the page and the SharePoint data base. We are using a REST API call to insert a new record into SharePoint list from a webpage. Use below code to create a new record to a SharePoint list. var URL = _spPageContextInfo.webAbsoluteUrl; $.ajax({ url: URL, type: "POST", headers: { "accept": "application/json;odata=verbose", "X-RequestDigest": $("#__REQUESTDIGEST").val(), "content-Type": "application/json;odata=verbose" }, data: "{ __metadata:{'type':'SP.Data.YourlistnameListItem'}, Title:"input value" }", // You can add more input with diffrent column name. here "Title" is internal name in sharepoint list. success: function(data) ...