Posts

Showing posts with the label SharePoint 2016

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

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...