My question is just opposite to scenario asked here
How we can fetch SingleValueExtendedProperties which is set through graph API and then wanted to retrieve same property in office Add-in.
Set: Code something similar below
var requestBody = new HttpRequestMessage(action, requestUrl)
{
Content = new StringContent("{'SingleValueExtendedProperties': [{'PropertyId':'String {66f5a359-4659-4830-9070-00047ec6ac6e} Name Color','Value':'Green'}]}", Encoding.UTF8, "application/json")
};
Read: I tried used all combination to get property value but getting undefined results
const item = Office.context.mailbox.item;
item.loadCustomPropertiesAsync((result) => {
const props = result.value;
const testProp = props.get("Color");
console.log("Color", testProp);
});
Could anybody help me getting property value in office 365 Add-in.