Posts

Showing posts with the label SharePoint 2013

Register Certificate as Trusted Token Issuer SharePoint 2013

When in need to register a certificate to SharePoint Trusted Token Issuer execute below powershell command in SharePoint Management Shell. In case existing ones needed to be deleted then use below script to delete all.

SharePoint JSOM Nested Include Properties

Hi All, Sometimes we need to get properties which are nested inside of Listitem and we wonder will it be feasible to make multiple queries for the same. So this scenarios usually occurs when you have to get a set of listitems which are folder and we need to get folder properties of the folder. So you can query it using below method. Just add the sub properties in Include tag

Read Web Property Bag values SharePoint 2013 , 2016 JSOM

Hi All, Sometimes we just quickly need to check the values of property bag of the web. You can just paste below script in console to get the values of property bag in console. Recommended way 1. Add the script as a as  snippet in Sources >> snippets in Chrome browser 2. Run the script without changing any value

Sign in As different user SharePoint 2013 on access denied

Sometimes you go crazy when you see “Access denied” page and struggle to append “Closeconnection.aspx?loginasanotheruser=true” in the url Below is a link which you can add in bookmark and directly append “Closeconnection.aspx?loginasanotheruser=true” with just one click. AccessDenied : Sign In as Different User Note: This script is currently developed only for SharePoint 2013.Will shortly upload for all versions of SharePoint

SharePoint 2016, 2013 , 2010 , 2007 Create list item with existing ID

Hey Guys, Now i was in a really tricky scenario where a master record had been deleted by someone which was referenced using code in numerous places. Changing the code would be a nightmare. Now the easiest solution which will come to everyones mind is to add the list item with those possible values again. But it would not retain the ID value which was used in the code.Let me give you an example to clarify the problem statement PROBLEM STATEMENT There is a “status” master list with the following values and the third list item is deleted. We want the 3 rd list item with ID=3 to be restored even when it is deleted from recycle bin as in the code the ID column is used to reference the status. Status ID Approved 1 Rejected 2 Review 3 In Draft 4 SOLUTION: Now usually the answers would be    Restore it from recycle bin (almost 3 months have passed and it has been deleted from recycle bi...

401 Unauthorized error for SharePoint Apps

Sometimes we get 401 unauthorized error for apps Below are the list of checks which should be made before calling it a major problem 1. Issuer Id and client Id registration 2. Disable loop back check and Back Host connection names  Link 3. AllowOAuthOverHttp check for SPSecurityTokenServiceConfig I will further elaborate on the above topics in few days.