From 1d809f95fee93d3f67edcd25e8e0ede48017265e Mon Sep 17 00:00:00 2001 From: Elizabeth Samuel Date: Wed, 26 Feb 2020 12:55:30 -0800 Subject: [PATCH] [office-js] [office-js-preview] (Outlook) Mailbox.restUrl should incl... (#42661) * [office-js] [office-js-preview] (Outlook) Mailbox.restUrl should include link to SharedProperties.targetRestUrl for shared folders scenario * Update based on feedback --- types/office-js-preview/index.d.ts | 6 +++++- types/office-js/index.d.ts | 6 +++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/types/office-js-preview/index.d.ts b/types/office-js-preview/index.d.ts index 82b4e5d751..431094efe8 100644 --- a/types/office-js-preview/index.d.ts +++ b/types/office-js-preview/index.d.ts @@ -12593,9 +12593,13 @@ declare namespace Office { * * Your app must have the `ReadItem` permission specified in its manifest to call the `restUrl` member in read mode. * - * In compose mode you must call the saveAsync method before you can use the `restUrl` member. + * In compose mode you must call the `saveAsync` method before you can use the `restUrl` member. * Your app must have `ReadWriteItem` permissions to call the `saveAsync` method. * + * However, in delegate or shared scenarios, you should instead use the `targetRestUrl` property of the + * {@link Office.SharedProperties | SharedProperties} object (introduced in requirement set 1.8). For more information, + * see the {@link https://docs.microsoft.com/office/dev/add-ins/outlook/delegate-access | delegate access} article. + * * [Api set: Mailbox 1.5] * * @remarks diff --git a/types/office-js/index.d.ts b/types/office-js/index.d.ts index e81d888973..97d8ecade1 100644 --- a/types/office-js/index.d.ts +++ b/types/office-js/index.d.ts @@ -12250,9 +12250,13 @@ declare namespace Office { * * Your app must have the `ReadItem` permission specified in its manifest to call the `restUrl` member in read mode. * - * In compose mode you must call the saveAsync method before you can use the `restUrl` member. + * In compose mode you must call the `saveAsync` method before you can use the `restUrl` member. * Your app must have `ReadWriteItem` permissions to call the `saveAsync` method. * + * However, in delegate or shared scenarios, you should instead use the `targetRestUrl` property of the + * {@link Office.SharedProperties | SharedProperties} object (introduced in requirement set 1.8). For more information, + * see the {@link https://docs.microsoft.com/office/dev/add-ins/outlook/delegate-access | delegate access} article. + * * [Api set: Mailbox 1.5] * * @remarks