【发布时间】:2017-05-23 13:13:26
【问题描述】:
My question is just opposite to scenario asked here
我们如何获取通过图形 API 设置的 SingleValueExtendedProperties,然后想在 office 插件中检索相同的属性。
设置:在下面编写类似的代码
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")
};
阅读:我尝试使用所有组合来获取属性值但得到未定义的结果
const item = Office.context.mailbox.item;
item.loadCustomPropertiesAsync((result) => {
const props = result.value;
const testProp = props.get("Color");
console.log("Color", testProp);
});
谁能帮我在 office 365 插件中获取房产价值。
【问题讨论】:
标签: javascript c# office365