office365-apps

Office Add-in development: Insert image/picture in Word 2016

自闭症网瘾萝莉.ら 提交于 2019-12-19 23:23:22
问题 I would like to ask as to what is the best way to insert an image/picture to the document in JavaScript? I am weighing in between an online and offline images but don't know where to start. I've tried searching the API references but with the lack of code samples, I am not able to fully understand the "how". Any help will be greatly appreciated. Cheers! 回答1: We can insert images into document via OOXML, Html. And it is easy that using Html to insert online images. Here is an example for your

550 5.7.1 Client does not have permissions to send as this sender (office365)

混江龙づ霸主 提交于 2019-12-18 18:53:39
问题 i m trying to send email with following configuration Host: smtp.office365.com port: 587 user: "myemail@domain.com" pass: "mypassword" i m getting the following exception : 550 5.7.1 Client does not have permissions to send as this sender i have gone through many forums that told me to set send as permission for mailboxe but i m not able to find any such configuration in oulook web app...or do i need to configure it somewhere else and if it so then where..???....i have only used above

Yammer REST API: 401 Unauthorized when using Azure AD token and Yammer Delegated Permissions

独自空忆成欢 提交于 2019-12-18 13:38:48
问题 I am creating an Azure AD App that is using the new Yammer delegated permissions preview to post a message to Yammer using the access token that I obtained from Azure AD. Unfortunately, I get a 401 Unauthorized response when trying to call Yammer Rest APIs. Here is the code sample: var resourceId = "https://www.yammer.com"; var endpointUrl = "https://www.yammer.com/api/v1/messages/following.json"; AuthenticationHelper helper = new AuthenticationHelper(); helper.EnsureAuthenticationContext

Create a calendar link for Outlook Office 365 calendar?

烂漫一生 提交于 2019-12-13 00:44:20
问题 I can create a link that populates my Google calendar with information, like this... <a href="http://www.google.com/calendar/event?action=TEMPLATE&text=MyEvent&dates=20150701T000000Z/20160305T000000Z&details=Test&location=Somewhere">Add to Google Calendar</a> ...which works fine. But how can I create one that does the same thing but works for web based Outlook Office 365 calendar? Information on how to do this is surprisingly scarce. 来源: https://stackoverflow.com/questions/31506725/create-a

Office 365 API or Azure AD Graph API - Get Someone Elses Calendar

僤鯓⒐⒋嵵緔 提交于 2019-12-12 13:00:29
问题 I am trying to get an office 365 calendar, not for "me", but of a contact. i.e. in the company I work for (which has a global address list), I want to access Dave's calendar, as I would in outlook. I have been through the documentation here, StackOverflow (e.g. here and here), plus Office 365 samples and Graph API samples (I believe Graph API is required for global address lists), but cannot find a way to do it. I have 3 questions: Is this possible? If so, how please? If it's not possible

Office.context.mailbox.item.body.setAsync removing original base64 from signatures

左心房为你撑大大i 提交于 2019-12-12 05:17:05
问题 I'm trying to use Office.context.mailbox.item.body.getAsync and Office.context.mailbox.item.body.setAsync Javascript methods in my Outlook add-in to add some content to the mail body. It's working really well, except when the user has an image on its signature. The image disappears and only its alt attribute is shown. If I inspect the html, the <img> element is there, but the src attribute turns into (unknown) instead of showing the original base64. 回答1: I work days on this problem without

Office365 EWS API : The token has invalid value 'roles' for the claim type ''

柔情痞子 提交于 2019-12-12 03:49:30
问题 I'm trying to access the Office365 REST API using OAuth2: http://msdn.microsoft.com/en-US/library/office/dn605901.aspx I followed all the steps described here: http://blogs.msdn.com/b/exchangedev/archive/2014/03/25/using-oauth2-to-access-calendar-contact-and-mail-api-in-exchange-online-in-office-365.aspx I have an OAuth2 token for resource " https://outlook.office365.com/ " but when I try to access the API I get the following error: "The token has invalid value 'roles' for the claim type ''."

How to published an Office Add-In to SharePoint for use with Excel Web App

[亡魂溺海] 提交于 2019-12-11 12:52:12
问题 I am unable locate any information on the Internet that simply makes the statement, "Office Add-ins (aka Apps for Office) only work in Desktop apps and Office Online. They do not work in SharePoint office web-parts.", if that truly is a correct statement. I have a Excel Add-in and can published it using the following instructions: https://msdn.microsoft.com/en-us/library/office/fp123515.aspx . My add-in is a task-pane add-in (https://msdn.microsoft.com/en-us/library/office/fp123523.aspx) With

Disable Office 365 Outlook Add-in for desktop

喜夏-厌秋 提交于 2019-12-11 07:35:59
问题 I have developed an Office 365 Outlook Add-in for the web. It's automatically supported in desktop also. I want to disable the app only for the desktop. I guess we need to change something in Manifest file but I couldn't get any clue. Can anyone help me to achieve this?? 回答1: The Office add-in is aim to cross-platform developing for the Office solution. At present, it doesn't support to limit platform. Here is the specification of “Host“ element which used to specify the Office host

AADSTS65005: Application 'CLIENT_ID' is requesting permissions that are either invalid or out of date."

≡放荡痞女 提交于 2019-12-11 04:14:10
问题 I have a multi-tenant application on AAD App which requests access to Mail, Calendar and Contacts. The app works successfully for a large number of clients apart from 1. Any users from this particular client who go through the authorisation flow fail with the following error message: AADSTS65005: Application 'CLIENT_ID' is requesting permissions that are either invalid or out of date. I have checked the list of permissions and nothing has changed on the app configuration so at a loss as to