office365

Have JS Office Add-in close or exit events for the document?

只愿长相守 提交于 2019-12-12 03:26:25
问题 I'm currently develop a JS Office Add-in, but I could'n find any reference in API Documentation (https://dev.office.com/reference/add-ins/) for an close document or exit document event. I need to suscribe it to show the user warning message about save plugin settings 回答1: There are no events like that in the current version of the Add-in API. 回答2: Try this code: window.addEventListener("beforeunload", function (e) { var confirmationMessage = "\o/"; (e || window.event).returnValue =

Getting “Cannot resolve the OData request URL.” for specific users on REST item update call

时间秒杀一切 提交于 2019-12-12 03:24:00
问题 I getting the "Cannot resolve the OData request URL." when making call like this: PATCH https://outlook.office365.com/api/v1.0/users('user@domain.com')/messages/this-long-item-id Problem that actually works only for user for which i provided explicit consent earlier. For two other users i can't provide individual consent because i updated the app to use the one-time administrative consent with permissions "allow read all mailboxes in organization" and "allow write all emails in organization"

Sort Excel table (ListObject) on protected sheet using Excel Interop

眉间皱痕 提交于 2019-12-12 03:06:37
问题 Sorting Excel tables (ListObjects) is not allowed on protected sheets. You'll see the following error message: I spent weeks looking for a solution with no success. Everything out there is outdated with Excel 2007 code samples. There are no tutorials or guides on how circumvent this limitation. Here's how I was able to finally overcome.. 回答1: There is no trappable event when sorting from the Excel's filter drop-down menu of a table. You can, however, trap the events when an ascending,

Insufficient privileges to complete the operation

百般思念 提交于 2019-12-12 03:03:03
问题 I want to query user's groups. according to https://graph.microsoft.io/en-us/docs/platform/rest i do the following steps: Get Code https://login.microsoftonline.com/common/oauth2/authorize? response_type=id_token%20code& client_id=<MY_CLIENT_ID>& redirect_uri=http%3A%2F%2Flocalhost%3A3000%2Fauth%2Fopenid%2Freturn response_mode=query& nonce=F8GtCajiXYKcGBtw& scope=openid%20https%3A%2F%2Fgraph.microsoft.com%2FGroup.Read.All%20Group.Read.All& resource=https%3A%2F%2Fgraph.microsoft.com%2F& state

Access shared files in OneDrive for Business with Office 365 client libraries

假如想象 提交于 2019-12-12 02:40:06
问题 Is there a way to access shared files on OneDrive for Business with the Office 365 client libraries? There are many examples on how to access MyFiles, like this great one on github. The Graph API has access through: https://graph.microsoft.com/v1.0/drives/[DRIVEID]/items/[FOLDERID]/children I have not found a way to access the same with the SharePointClient, only: var filesResult = await client.Files.ExecuteAsync(); 回答1: There is a C# SDK for OneDrive for Business that you can use to pull

Log in into Outlook meeting room account

拥有回忆 提交于 2019-12-12 02:13:52
问题 Is it possible to log in into an Office365 Meeting Room user? I need to use an android app for each Meeting Room of my company and get the meeting room bookings to save them into a shared local repository. I have to use Outlook Calendar REST API to get the meetings, is it possible? "The meeting rooms have resource accounts, not user accounts. This means they cannot be logged into" .. is this true?? Many thanks 回答1: It is true, you cannot log in to resource accounts. Today in order to access

Can't create new events with Office 365 API

隐身守侯 提交于 2019-12-12 02:02:41
问题 I am using the the Calendar REST in Office 365 API and I try to post a event according to the example in: http://msdn.microsoft.com/en-us/library/office/dn792114(v=office.15).aspx The response I get is {error: {code: "ErrorInvalidRequest" message: "Cannot read the request body."} } when I post with Avanced Rest Client to URL https://outlook.office365.com/ews/odata/Me/Events with Content-Type: application/json and I'm using an office365 service account. The JSON I post is copied from the

=-sign in Office 365 ContactFolders API call not working

自闭症网瘾萝莉.ら 提交于 2019-12-12 01:58:09
问题 I am consuming the Office 365 REST API (using basic authentication) at outlook.office365.com/EWS/OData/. The call to outlook.office365.com/ews/odata/Me/ContactFolders('Contacts') is returning all of the Contacts in the 'root' of the Contacts folder. But I would like to get all users - also in the (sub)folders. I can get a list of folders in Contacts using: outlook.office365.com/EWS/OData/Users('E-MAILACCOUNT')/ContactFolders('IDOFTHECONTACTFOLDER')/ChildFolders This shows all of the folders,

Bypassing the Office 365 Login to SharePoint Online ADFS with SSO

我的未来我决定 提交于 2019-12-12 01:39:33
问题 I am trying to connect to a sharepoint website, which first redirect to Microsoft login page/office 365 login page, And once i enter my company email id then its redirect to My company ADFS login page, where email id already exist in the text box and password is required. what i am trying here is to avoid the Login page i.e.(first microsoft/0ffice365 login page and then to my company sso login page) and directly open the sharepoint online website without any redirect/prompt for login

Passing querystring arguments to a Office 365 word add-in

无人久伴 提交于 2019-12-12 01:25:37
问题 Is there any support in the Office API to pass arguments to an office add-in? When a word document is opened in Office 365 by clicking on the document URL https://username-my.sharepoint.com/:w:/r/personal/username_tenantname_onmicrosoft_com/_layouts/15/Doc.aspx?sourcedoc=%7QAF15650B-72D2-447C-BE9C-9201A7F61BA4%7D&file=Document%20158.docx&action=default&mobileredirect=true Can we pass some querystrings in the URL which is accessible in the add-in environment? 回答1: Yes, you can. You could refer