Last call to make your voice heard! Our 2022 Developer Survey closes in less than a week. Take survey.

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
1 vote
1 answer
155 views

Is it possible to set a property bag value via CSOM without having tenant permissions?

I'm trying to use my backend CSOM app with context of Site Collection Administrator service account to programmatically set a property bag value to store some settings for my frontend extension app. I'...
user avatar
1 vote
0 answers
89 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 ...
user avatar
1 vote
0 answers
60 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"...
user avatar
2 votes
1 answer
280 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 "...
user avatar
  • 175
0 votes
1 answer
49 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.
user avatar
  • 153
1 vote
2 answers
955 views

Ho do I update property bag items in SPFX extensions?

I want to update Property Bag items with pnp-core js. I can get the property bag items by the following code - pnp.sp.web.select('AllProperties').expand('AllProperties').get() But what is the code ...
user avatar
3 votes
2 answers
77 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 ...
user avatar
1 vote
1 answer
309 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 ...
user avatar
  • 11
3 votes
1 answer
2k 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/...
user avatar
  • 858
0 votes
2 answers
533 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)...
user avatar
  • 4,325
1 vote
1 answer
100 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 ...
user avatar
  • 588
1 vote
0 answers
40 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 ...
user avatar
  • 1,183
0 votes
2 answers
391 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 ...
user avatar
10 votes
3 answers
4k 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 ...
user avatar
0 votes
1 answer
56 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 ...
user avatar
  • 4,325
1 vote
1 answer
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()[...
user avatar
  • 1,534
0 votes
1 answer
854 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,...
user avatar
  • 1
1 vote
1 answer
399 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 = "...
user avatar
  • 513
3 votes
0 answers
5k 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({ ...
user avatar
  • 1,374
2 votes
0 answers
356 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 ...
user avatar
0 votes
1 answer
215 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 ...
user avatar
0 votes
1 answer
851 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
user avatar
16 votes
5 answers
39k 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?
user avatar
  • 4,904