My question is just opposite to scenario asked hereOffice/Graph APIで設定したOutlookアドイン(js)でSingleValueExtendedPropertiesを取得しますか?
グラフ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);
});
を得ることは誰もがオフィスでプロパティ値を取得し、私を助けてもらえてみました365アドイン。
ありがとうございます! @Glen、これは私がアドインで小道具の価値を読むことができるのですか?それをグラフAPIに正しく書くにはもっと努力が必要でしょうか?可能であれば、どのように詳細を教えてください? –
上記追加編集をご覧ください –
多くのThanks @Glen。私はこれを試してみましょう、あなたの返信は有望に見えます.. –