While clicking on Authorize API Access it displays
I am bogged down at this section in ERP where I need to get an OPENID configuration. Where is this with the cloud base software?
Looking for a little assistance.
I managed to get all the steps done up to 2.b.7 (Create An Email Account), but when creating the Email Account, I donât get the option to âAuthorize API Accessâ button, itâs simply not there.
Am I doing something wrong that would cause the API Button to not appear?
Hello @avc,
i disable SMTP Auth within mailflow setting but get these error?
What can i do to fix these issue? If i only enable IMAP within mail account settings for specific User i don´t get any error.
Regards
Kevin
HI @kevco97:
Check credentials and make sure SMTP AUTH is enabled for your tenant in M365 (Exchange) admin panel.
Check if this mailbox (user) has smtp enabled too (email apps on user config)
Fixed that was the issue i was logged in on the MS365 Website with different User
Thank you for your help.
Regards
Kevin
Hello @rmeyer,
i have try but with some Sharedmailboxes i get these error.
What can i do?
With Personal Mailboxes everything is fine. Is it true that i need a license for shared mailboxes and SMTP Auth?
Regards
Kevin
I donât know, sorry. Best check with Microsoft, I guess.
@rmeyer thank you for reply. I have fixed the issue.
Sharedmailboxes OAuth/SMTP Auth work without a license if i select the connected User and enter his e-mail to the alternative e-mail ID checkbox.
This User must have a valid MS365 license.
If the E-Mail Account is created within ERPNext the you should click on the Authorizie API Access Button and login to MS365 Account with the alternative E-Mail ID (not the Sharedmailbox Account).
The alternative E-Mail ID User should have permissions to access the Sharemailbox. Check your EAC Settings.
Then it´s possible to send E-Mail with Sharedmailbox.
Regards
Kevin
Can any one help me to integrate Microsoft 365 mail services OAuth
i tried for 3 days but i didnt reach my goal
i will be thankful if anyone helps me to do it
I have made it far enough that the Microsoft 365 account sends mail out correctly, however I am still not receiving emails into the system. Iâm not sure if there is a place to look for the incoming mail error logs, but I have added the scope IMAP, and authenticated correctly with Oauth.
Any ideas where I can narrow down why incoming mail isnât showing? I like the idea of having contacts added automatically.
You must configure this within E-Mail Account Settings.
If anyone reply to your offer or something like that it should be arrive within ERPNext.
It would be better if you configure the E-Mail Address within your customer.
Hi @avc,
Thanks for the tutorial.
When trying to add the application permission for Office365 Exchange Online, I cannot find it. When Googling, it apparently is because I havenât got an Entra P2 / AAD P2 subscription. But that increases the per-user cost by 2x. This should be doable without having to upgrade to AAD P2, right?
Getting stuck here
Also, when ignoring the above and then following all the steps, I get the following error when connecting the email account with the user:
AUTHENTICATE command error: BAD [b"[CLIENTBUG] syntax: expecting âpâ, found âxâ"]
Does that have to do with it, or is this something else?
Thanks for the help. Would love to receive guidance here.
Edit: after double-checking the email account settings (TLS/IMAP checkboxes). It seems like it works.
Tried the same steps you defined but there is a server error and more over there is some imap4.lib.error
From the connected app method i got this error:
Traceback (most recent call last):
File âapps/frappe/frappe/app.pyâ, line 114, in application
response = frappe.api.handle(request)
File âapps/frappe/frappe/api/init.pyâ, line 49, in handle
data = endpoint(**arguments)
File âapps/frappe/frappe/api/v1.pyâ, line 36, in handle_rpc_call
return frappe.handler.handle()
File âapps/frappe/frappe/handler.pyâ, line 49, in handle
data = execute_cmd(cmd)
File âapps/frappe/frappe/handler.pyâ, line 85, in execute_cmd
return frappe.call(method, **frappe.form_dict)
File âapps/frappe/frappe/init.pyâ, line 1768, in call
return fn(*args, **newargs)
File âapps/frappe/frappe/utils/typing_validations.pyâ, line 31, in wrapper
return func(*args, **kwargs)
File âapps/frappe/frappe/integrations/doctype/connected_app/connected_app.pyâ, line 172, in callback
frappe.throw(_(âInvalid state.â))
File âapps/frappe/frappe/init.pyâ, line 645, in throw
msgprint(
File âapps/frappe/frappe/init.pyâ, line 610, in msgprint
_raise_exception()
File âapps/frappe/frappe/init.pyâ, line 561, in _raise_exception
raise exc
frappe.exceptions.ValidationError: Invalid state.
Guide me whats the issue with it.
Hi,
thank you for the comprehensive instruction.
Unfortunatley I did not get it working, although I think it might be not Frappe related. But I need a second opionion for clarification.
When I am logged in as Administrator and navigate to E-Mail-Account and click on API Authorize button, I get the M365 Authentication presented. After that I get a Frappe window saying âThe ressouce is not availableâ.
When I look into the Sign-In log of the M365 application: it says the login was successfull.
But what resource is meant here and how do I troubleshoot that?
I would be thankfull for any idea!
Best regards,
Marcus