I use Outlook Redemption to sync Outlook calendars with our own planning system.
It connects to an Office365 mailbox that is used as an admin. The admin account then reads planning items from our system and writes them to the calendars of other users that give permission to do so.
The issue is that it sometimes works, but most of the time it does not.
I connect using LogonHostedExchangeMailbox
Then I log the session values. When the issue occurs the session values are:
210427 09:13:50 - Current user name="UNKNOWN"
210427 09:13:50 - Current user EntryID="00000000812B1FA4BEA310199D6E00DD010F540200000110554E4B4E4F574E00554E4B4E4F574E00554E4B4E4F574E00"
210427 09:13:50 - Current user SMTP address=""
210427 09:13:50 - Current user address="UNKNOWN"
But sometimes, without me changing anything it works and says:
210426 20:34:31 - Current user name="Dylius"
210426 20:34:31 - Current user EntryID="00000000DCA740C8C042101AB4B908002B2FE18201000000000000002F6F3D45786368616E67654C6162732F6F753D45786368616E67652041646D696E6973747261746976652047726F7570202846594449424F484632335350444C54292F636E3D526563697069656E74732F636E3D62663562353933643039623734323834613264303465613539316233343863652D64796C69757300"
210426 20:34:31 - Current user SMTP address="dylius#flyawaytv.be"
210426 20:34:31 - Current user address="/o=ExchangeLabs/ou=Exchange Administrative Group (FYDIBOHF23SPDLT)/cn=Recipients/cn=bf5b593d09b74284a2d04ea591b348ce-dylius"
Does anyone have an idea as to why it does not work most of the time, while it sometimes does work?
When it does not work, later in my log i get this. It is in dutch but basically means that the Exchange is not available.
210427 09:14:37 - Error in IMAPISession::OpenMsgStore(pbExchangeProviderPrimaryUserGuid): MAPI_E_FAILONEPROVIDER
ulVersion: 0
Error: Microsoft Exchange is niet beschikbaar. Er is een probleem met het netwerk of er worden onderhoudswerkzaamheden uitgevoerd op de Microsoft Exchange-server.
Component: Informatiearchief van Microsoft Exchange
ulLowLevelError: 2147746069
ulContext: 1318
Related
My user tries to access Microsoft Power Automate (Flow) approvals via email notifications that the Flow sends to them. When clicking on the approval, they get an error "Something went wrong. The requested approval is not accessible to the caller." When directly accessing their approvals at us.flow.microsoft.com > Action items > Approvals, they only see approvals up to January. The same approvals are working for other users. How do I fix approval access?
I tried having the user login via an incognito tab. I also checked whether the user still has MS PA licenses assigned to them, and they seem to be correct (the user has MS 365 E1, MS 365 Business Premium, and MS Power Automate Free).
Figured out the what was causing the issue for our user. The user had a duplicate enterprise microsoft account, so both were being sent the email notification about the approvals, but only the duplicate account was being given access to them. Removing the duplicate account fixed the issue.
If we had had two users with the same name & neither can be deleted, another solution would've been to change how the approvals are routed (ie. by email instead of name.)
Using Exchange 2016 on premises, I'm trying to logon to another users mailbox from my admin account using the RDOSession.LogonExchangeMailbox method. The admin account has impersonation access to all other mailboxes so should have rights to do this. After running the logon method the RDOSession object shows ExchangeConnectionMode as olCachedConnectedFull, but the RDOSession.CurrentUser.name shows as UNKNOWN. If I try to access the inbox using GetDefaultFolder I get a MAPI_E_LOGON_FAILED message. Can you suggest what I might be doing wrong, or haven't done to allow this ?
LogonExchangeMailbox always uses the identity of the current user to connect to the mailbox in the RPC mode (no longer supported by Exchange 2016). To open another mailbox, you can call RDOSession.GetSharedMailBox / GetSharedMailBoxEx.
You can also use LogonHostedExchangeMailbox - it takes explicit credentials instead of connecting as the current local user.
When I go to Authorize?Login, A user in the desktop outlook Web-Add-In I get this image above. This is happening in my desktop app not in the web version. It is asking me to do I want do this.
I think this is happening becuase I have a javascript timer set in the background to check to see a authenticated cookie is present before asking the user to login again.
I tried using Office Authorization dialog boxes but they are not working correctly.
Outlook 2016, Exchange 2016
ALso 1 more question in the outlook desk top is there a way to see a console so I can see some of my logging I have created?
So the what I am working on is the ability for a user to login into our system, store a valid token, and the user can then record email messages into our system to track communications between them and the person doing the email.
So I ask them to log into our OAuth server, Outlook would store that token, and every time the user wanted to recorded a message they would simple press a button.
I am running into an issue with Microsoft Flow to create appointments on another calendar that my account as Send As permission to. I am able to create appointments in the UI for this second account. However in Flow, it is asking for a CalendarID. The drop down only shows calendars directly related to the account in the connection. When I manually enter the CalendarID to the second account, I receive this error: "The specified object was not found in the store."
Any help / tutorials will be greatly appreciated.
"The specified object was not found in the store."
This is an EWS permissions error so whatever you doing isn't going to work with SendAS rights. You will need to assign full access permission to the Mailbox (or at least rights to the calendar folder via Add-MailboxFolderPermission) for this to work with EWS. SendAs permission by definition only gives a user rights to SendAS another user not access folders in their Mailbox. You can test all this with the EWSEditor https://ewseditor.codeplex.com/ which is going to be making the same calls. If it works in the EWSEditor with the same creds as flow but not in your other code then you know the rights are good but whatever you doing in Flow is the issue.
When creating a case I get the below error.
Access Error The system could not log you on. This could be because
your user record or the business unit you belong to has been disabled
in Microsoft Dynamics 365. If you contact support, please provide the
technical details.
This occurred shortly after deleting the CRM Admin user and creating a new CRM Admin user in the Office 365 users screen.
The more technical message is
The user with
SystemUserId=bb51ba1c-66e8-4dc1-82ca-cb64e25f3ff9 in
OrganizationContext=7e061672-3a31-4588-9770-9f94711c7f09 is
disabledDetail.
The error message is saying that the user with that ID is disabled so the first thing to do would be to open that record and check which user it is.
To do that, use the URL below but replace the xx's and the yourregion part of the url (I've already added your user id).
https://xxxxxxxx.yourregion.dynamics.com/main.aspx?etc=8&extraqs=&histKey=952109180&id={bb51ba1c-66e8-4dc1-82ca-cb64e25f3ff9}&newWindow=true&pagetype=entityrecord
You will then need to enable that user or resolve problems from there.
I would also check that you don't have any plugins or workflows which have been setup to run as that user when creating a case.