I built an Outlook Add-in and it uses a token to download email attachments from the Exchange server.
On my O365 developer account, it successfully retrieves the token.
The Add-in has been deployed to the client's Outlook but when they try to retrieve the token, this is the response message:
MessageText:"The token for this extension could not be retrieved.
"ResponseClass:"Error"
ResponseCode:"ErrorInvalidClientAccessTokenRequest"
Token:null
__type:"GetClientAccessTokenResponseMessage:#Exchange"
The code is exactly the same and so is the request. Is there any clues I could look into to figure out what about their environment would cause this to fail?
The ErrorInvalidClientAccessTokenRequest field is applicable for clients that target Exchange Online and versions of Exchange starting with Exchange Server 2013.
Related
I have a scenario where a "compose mode" add-in for Outlook makes a subject line update to the draft email, then sends the email. The send action is currently carried out using either the EWS or REST APIs.
The issue occurs when a "override" policy tip is configured by the Exchange admin. The policy tip in question requires the user to choose override, in certain cases, to send an email (e.g external communication).
During message composition, if the appropriate trigger for the policy tip occurs, the policy tip appears and offers the user the option to override (as expected). When the add-in action is called, via ribbon button, the email appears to be sent. However, moments later an automated message from the Exchange indicates that the email has not been sent due to not adhering to the policy rule.
I believe this occurs because the send API, for both EWS and REST, does not call a local function in the Outlook client. Rather these API actually perform the send event on an email item syncedto and stored on the server. The Exchange server has no knowledge of the user's selection to override the policy tip at the client, so the issue occurs.
This happens in both Outlook on Desktop and Outlook Web Access.
I have searched through the EWS and REST APIs and cannot find any way to share/indicate the policy tip override when using these API.
I have searched the add-ins developer documentation and can find no mention of policy tips at all.
I have searched the Exchange admin policy tips documentation and can find no mention of add-ins compatibility or add-in related behavior.
So, can Microsoft Outlook Policy Tips be used in conjunction with add-ins REST/EWS send API?
We have problem on Exchange 2013, response of attendee for other attendees is not retrieved from Exchange server, via EWS and also in OWA.
In Office 365 it works.
Of course - all replies only go to the organizer, the attendees never see the updated responses.
It is a recent Office 365 feature that allows the attendees to see the responses as well. See https://support.microsoft.com/en-us/office/attendees-can-see-others-responses-to-a-meeting-invitation-f51437e5-352c-4223-b7d8-7020cd71f3c8
I have the mail exchange server for pratice. And in this exchange server, I create a bulk recipients but still not logon anytime.
When I run Get-MailboxStatics it return an warning that:
WARNING: The user hasn't logged on to mailbox 'abc'
('76768175-4db5-4cbb-a36b-fdbde574ccbc'), so there is no data to
return. After the user logs on, this warning will no longer appear.
So with the large number recipients over 100, how can I use powershell code to stimulate that I already logon successful for all recipient in this server?
I would suggest you look at using LoadGen https://www.microsoft.com/en-au/download/details.aspx?id=40726 and that will generate load on the server which will populate all the log files for you to look at and test. (the 2013 version will run fine on Exchange 2016).
In a recent post (How to retrieve ItemAttachment contents from Office 365 REST API?) API mentioned to retrieve attachments from within an attached EML is in plans. Is such API already available?
In case of mail flow rule to send a message to a moderator. Approval mail is sent to an approver with the original mail attached as eml. Is there an API to approve/reject the message, similarly to the web buttons approve/reject?
Thank you very much.
We were also looking for an answer to (2), but even now, apparently this is not possible via the REST API. There's one SO link that has a powershell script that claims to do this - see Approve email message via exchange EWS API, however, I don't see a clean solution yet.
I have build a C# application using Exchange Web Services to read Outlook Contact data from Office 365. Until April 2013, this was working just fine. However, Office 365 has been updated. Now, when I query contact data I receive an Exception "The remote server returned an error: (403) Forbidden."
I read some info about SharePoint Online App authentication, but can't find any details on MSDN. Is anyone familiar with this?