I am trying to grab a key/value pair from a specific property bag but can't find any documentation or example code on how to grab a property bag. Currently I can only seem to grab allProperties. Here is my code:
<CommandUIHandler
Command="FCS.Intake.Tab.Reports.TL"
CommandAction="javascript:
function getWebProperty() {
var ctx = new SP.ClientContext.get_current();
var web = ctx.get_site().get_rootWeb();
this.props = web.get_allProperties();
ctx.load(web);
ctx.executeQueryAsync(Function.createDelegate(this, gotProperty), Function.createDelegate(this, failedGettingProperty));
}
function gotProperty() {
window.location.href = this.props.get_item('PropertyKey1');
}
function failedGettingProperty() {
alert('failed');
}
getWebProperty();"
/>
This doesn't work because the key/value pair is located in a property bag as opposed to a site property.
Does anyone know how to grab a specific property bag using ECMA script?

With no luck.
– Meyer Denney Jun 01 '12 at 17:16