Questions tagged [property-bag]

a property bag simply contains a series of name/value pairs that correspond to the Feature properties, which are formatted with System.String.

Filter by
Sorted by
Tagged with
0
votes
0answers
21 views

SharePoint Online Site Collection PropertyBag - how to apply crawled property to child content of site collection (e.g. documents in library)?

In my enterprise search page, I want users to be able to filter their results by choosing 'site' metadata. I've already setup a filter for site name using the ows_SiteName crawled property - it works ...
1
vote
0answers
17 views

How to update a site collection property bag with xml like data using powershell?

I've tried this: $spSite = Get-SPSite -Identity http://mysitecollectionUrl; $spwWeb = $spSite.OpenWeb(); $xmlFileContent = GetContent -Path ./myXmlFile.xml $spwWeb.AllProperties["myPropertyBagKey"...
2
votes
1answer
106 views

Web Application property bag : returned value is wrong - SharePoint 2016

We are currently encountering a strange problem with some values stored in the property bag of our Web Applications that we cannot explain. Basically, we have two Web Applications, one for the main "...
0
votes
1answer
32 views

How to restrict access to property bag values in sharepoint online before loading

I need to restrict specific users to read/update property bag values in SharePoint Online web part. Only few users should have get/set permissions. Any references or leads would be appreciated.
3
votes
2answers
70 views

SharePoint Online Addin Development-Could not fetch a certain key value from the Web Property Bag(AllProperties.FieldValues)

I have a requirement where in I need to develop a web page using SharePoint Addin in Visual Studio such that user enters certain configuration data . This data that has to be stored on the SharePoint ...
1
vote
1answer
227 views

SharePoint 2013 list item property bag and search

Question for SharePoint 2013 Does anyone know if it’s possible to index property keys at the SPListItem level? I know you can at the web, list level etc, but I really need for property values at ...
3
votes
1answer
1k views

PnP-JS-Core Property bags

Is there a way to get the property bags using PnP-JS-Core? There is nothing about it in the documentation or blogs that I've found in google. Using REST the call is: http://sitecollection/site/_api/...
0
votes
2answers
427 views

What is the best practice to create property in propertybag (+ indexed for search)

I would like to create a new property to the propertybag. And it needs to be indexed by search. I try this but it is not working: private void CreatePropertyBagItem(Web web, string key, string value)...
1
vote
1answer
82 views

Using search with property bag only give my one result

I'm testing to tag site with a property bag for use with search. My problem is that if I have two sites with the same value in the property bag. Only the first one is shown in the Search Center, or if ...
1
vote
0answers
34 views

Encrypty property in a Farm propery bag

I'm using SharePoint Property Bag Settings 2013 to set my property bag. I would like to encrypt a password at farm level in it. So from Central Administration/System Settings I tried to set an ...
0
votes
2answers
243 views

Provision property bag for document library declaratively via sandbox

I have a no-code sandbox solution that I use to provision artefacts. One is a document library to which I want to attach a property bag to be set by a user via custom setting page. I learned that one ...
10
votes
3answers
3k views

Setting PropertyBag values in SharePoint Online

I am trying to set some property bag values in SharePoint Online, specifically around SharePoint Designer access. The code below runs without error, but I do not see the propertybag value being ...
0
votes
1answer
52 views

Create propertybag doesn't work the first time

I have the following code below. The first time I run this code it doesnt create the property in the propertybag. The second time it will create the property. Why??? string newValue = new ...
1
vote
1answer
2k views

Reading all properties of web using Javascript object model

We can read the web properties using javascript object model as var webProperties = web.get_allProperties() and then to fetch a property value we can index it using webProperties.get_fieldValues()[...
0
votes
1answer
810 views

Sharepoint 2013 search query tool find property bag items

I created a sharepoint app with which you can create and edit property bag items. You can of course only edit the items you created yourself. Now I would like to make the property bag items searchable,...
1
vote
1answer
314 views

creating multiple properties in property bag

I want to know how to create multiple properties in property bag in sharepoint 2013 management shell. Now i have pretty long list like below $farm = Get-SPFarm $propName = "NameOfSite" $propValue = "...
3
votes
0answers
4k views

Set value in web property bag using REST API

I am trying to manage web properties from property bag using REST API. It is pretty straightforward how to get the values var url = "https://site.sharepoint.com/_api/web/allProperties"; $.ajax({ ...
2
votes
0answers
288 views

clear sharepoint property bag cache without apppool cycle

I've inherited code that uses the P&P code for accessing a farm-level property bag property on SharePoint 2013 SP1. The code has an application page to manipulate the property bag, and another ...
0
votes
1answer
192 views

Can a Lookup list field point to web property bag?

In my subwebs I have a 1 row list called "Details" that contains various bits of data that are meant to be web-level metadata. Image field, AssignedTo field, couple of string columns, etc. On top of ...
0
votes
1answer
788 views

How do I use property bag in Sharepoint designer Workflow

Is it possible to store and retrieve values from property bags in sharepoint designer workflows. Thanks Swayam
15
votes
5answers
37k views

Editing property bag values using powershell

What is property bag in SharePoint 2010? How do I retrieve values from a property bag and get/set the values using powershell?