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
0 answers
17 views

Trying to create a new property via REST API

My SharePoint buddy has created a new property in a SharePoint Online site for me called IsArchived. I can query that property using this REST API call: GET https://mycompany.sharepoint.com/sites/...
marc_s's user avatar
  • 101
0 votes
0 answers
48 views

Property bags as site custom fields: are them accessible by webparts?

I'm trying to figure out how to setup site custom fields, to be retrieved from React webparts. Doing some research, I've found several articles talking about Property Bags, like this one which seems ...
caneta's user avatar
  • 103
0 votes
2 answers
205 views

Setting a SharePoint Online's site "Title" property using the REST API?

I'm trying to set a SharePoint site's Title through the SharePoint REST API using C# code. When I get the site's web data using: GET http://mycompany.sharepoint.com/sites/site-url/_api/web/ I get a ...
marc_s's user avatar
  • 101
0 votes
2 answers
695 views

Update Propertybag values in sharepoint using REST API

I need to update the Property bag values in sharepoint Using REST API. I am able to get the Values but not able to update. Need help on this.
user3771062's user avatar
1 vote
1 answer
590 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'...
Mariusz Ignatowicz's user avatar
1 vote
0 answers
98 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 ...
brhlavinka's user avatar
1 vote
0 answers
112 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"...
ameliapond's user avatar
2 votes
1 answer
369 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 "...
Lancelot's user avatar
  • 175
0 votes
1 answer
100 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.
raju's user avatar
  • 153
1 vote
2 answers
1k 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 ...
Debashis's user avatar
3 votes
2 answers
78 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 ...
Varenya Peddada's user avatar
1 vote
1 answer
330 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 ...
K Saben's user avatar
  • 11
3 votes
1 answer
3k 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/...
yngrdyn's user avatar
  • 918
0 votes
2 answers
573 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)...
Ola's user avatar
  • 4,405
1 vote
1 answer
141 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 ...
gaotter's 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 ...
Gyonder's user avatar
  • 1,183
0 votes
2 answers
424 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 ...
Juergen Riemer's user avatar
10 votes
3 answers
5k 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 ...
Eric Alexander's 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 ...
Ola's user avatar
  • 4,405
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()[...
Vipul Kelkar's user avatar
  • 1,534
0 votes
1 answer
899 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,...
JazzVH's user avatar
  • 1
1 vote
1 answer
453 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 = "...
Happy's 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({ ...
luccio's user avatar
  • 1,363
2 votes
0 answers
378 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 ...
MikeBaz - MSFT's user avatar
0 votes
1 answer
222 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 ...
Jim Barntish's user avatar
0 votes
1 answer
858 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
Swayam Siddha's 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?
Nikhil J's user avatar
  • 4,934