Problem
When configuring Microsoft® for email importing, the following error displays on the App registration page in the Microsoft Entra® ID (formerly Microsoft Azure®) portal:
Failed to Create $app_name application. Error detail URL may not contain a query string.
Cause
Microsoft Entra apps do not support the redirect URI format in WHMCS if you have set Friendly URLs to Basic URLs.
Solution
Before you can use Microsoft email services, you must update your Friendly URLs settings.
To do this:
- Go to Configuration () > System Settings > General Settings and select the General tab.
- Set Friendly URLs to Full Friendly Rewrite or Friendly index.php.
- Click Save Changes.
- Go to Configuration () > System Settings > Support Departments.
- Edit the desired support department.
- Click the Copy icon next to Redirect URL. This will copy the URL to your clipboard.
- Paste the URL into Redirect URI in the Microsoft Entra portal.
- Complete your setup process.For more information, see Set Up Email Importing - Microsoft.
Last modified: October 30, 2024