Exchange side configuration has been already carried out and i have configured clientid and secret on creation (i've configured tenantid too which is not mandatory but i think it should be).
This puzzles me because in client credentials authorization no login should be asked to the user. In order to figure out where the issue is i would normaly trace the rest call made by creatio to obtain the token i invoke graph api. Sadly i couldn't figure out at all how to do this or if it is even possible.
Do you have any suggestion on how i can debug this scenario or similar ones where i have to check api call made by creatio?
What you're describing will work (having the system start a process every time an email is received in that mailbox or even auto sending emails from that mailbox in the background - all independent of users accessing the system). You just need to add the mailbox first. The credentials is only needed initially add the mailbox. Accessing any mailbox does require credentials, which is what gives the mail server context as to which mailbox is being accessed.
If this is some system mailbox that will be used for automated messages, there still is a user context to get access to the mailbox. What I often do is add that as an admin level user in Creatio. Once added, Creatio will continue to retrieve or send email via that mailbox regardless of whether that admin level user ever logs into Creatio again. The mailbox will be available to use in processes etc.
When you set up OAuth for Office365/Exchange mailboxes, it doesn't mean that no login info is asked of the user. It only means that Office365/Exchange is who asks for the login info of the user, not Creatio. The expected behavior is that a user adds their mailbox, they get redirected to the Exchange/Office365 login to authorize Creatio to use the mailbox, then redirected back to Creatio. If the user is already logged into their mailbox in the browser, they will not be asked to log in again and will only see the screen to authorize Creatio to use the mailbox.
Hi Ryan, thank you for your feedback. I guess i gotta go back to the accademy because i really didn't figure out this mimic. I thought, since we were setting up a client credentials oauth flow, that it was a machine to machine integration. Without the need for a user to input any password (which in my scenario isn't even known). If a user authentication is required to obtain a token that persist in the session i don't see how it would be possible to create automated and unattended processes that receive and sends from this mailbox. Above all what i'm trying to accomplish is to have a business process to start automatically every time a mail is received in the mailbox (independently by the users logged in the system). At this point it's hard for me to understand if it is even possible with out of the box features.
What you're describing will work (having the system start a process every time an email is received in that mailbox or even auto sending emails from that mailbox in the background - all independent of users accessing the system). You just need to add the mailbox first. The credentials is only needed initially add the mailbox. Accessing any mailbox does require credentials, which is what gives the mail server context as to which mailbox is being accessed.
If this is some system mailbox that will be used for automated messages, there still is a user context to get access to the mailbox. What I often do is add that as an admin level user in Creatio. Once added, Creatio will continue to retrieve or send email via that mailbox regardless of whether that admin level user ever logs into Creatio again. The mailbox will be available to use in processes etc.
I was wondering on which are the exact functionnalities that the Exchange Listener microservice adds to the system ?
Is it possible to synchronize a mailbox with Exchange, create cases based on the ingoing emails without having the Exchange Listener service on ? I did a diagnostic on a system and it seems that the service is off, however, I can still receive email, synchronize them with Exchange and even send emails from Creatio. How is this even possible ?
The synchronization service is required to manage emails in Creatio .NET Framework and .NET Core since version 7.17.2. This article covers the deployment of Exchange Listener synchronization service for Creatio on-site.
How were the emails managed without the Exchange Listener before the versions 7.17.2 ?
Does your answer mean that after the version 7.17.2, any synchronization with an email service is impossible without having the Exchange Listener Service installed on the environment ?
In the CRM, I have a Service section which creates automatic cases from an Exchange synchonisation (i.e. When an e-mail is drag & dropped to a Creatio synchronisation folder, it automatically creates a case).
I would implement something that when I drag & drop an e-mail to this synchronisation folder, it automatically deletes the e-mail after the Creatio synchronisation is done.
Is there a way to achieve that with Creatio ? Or should it be a direct configuration into Exchange ?
Is there a way to delete an e-mail after drag & dropping it into a folder from the provider side ?
This means that it would check if the synchronization has be done and if it is true then it would automatically delete the e-mail in the related folder ?
Many thanks for your reply,
I clearly understand that this is very hard to be supported from the Creatio side.