Extend Use Of EWS Until April 1, 2027
1 September 2026
Issue:
Starting October 1, 2026, Microsoft will begin deprecating EWS (Exchange Web Services for Microsoft 365 Tenants who do not Explicitly Enable it. Below is a link to a Microsoft article describing this change. You can Avoid this issue, by taking action before October 1, 2026.
Reference: https://techcommunity.microsoft.com/blog/exchange/exchange-online-ews-your-time-is-almost-up/4492361
EWS MA Verification
If you are unsure of whether the Forms Printer Setup is using an EWS Send Method in any of the Report Formats, you can use SQL Managment Studio to execute the TSQL Script below in the context of the Dynamics GP System Database:
SELECT
DISTINCT
p_md.ASI_PropValue AS MailDeliverySetupName
FROM dbo.ASI12391 AS a
INNER JOIN dbo.ASI12390 AS r
ON a.ASI_Report_Index = r.ASI_Report_Index
INNER JOIN dbo.ASI16553 AS p_md
ON a.ASI_Mail_Protocol = p_md.ASI_PropInstance
AND p_md.ASI_PropName = 'MailDeliverySetupName'
INNER JOIN dbo.ASI16553 AS p_em
ON a.ASI_Mail_Protocol = p_em.ASI_PropInstance
AND p_em.ASI_PropName = 'EmailSendMethod'
AND p_em.ASI_PropValue = 'EWS'
WHERE a.ASI_Mail_Output = 1
ORDER BY p_md.ASI_PropValue;
Error After Deprecation:
When this occurs, your Forms Printer for Microsoft Dynamics GP will start returning an error upon attempt to send email through EWS MA - (Modern Authentication)
E-Mail Error: Error In ASI_Send_Mail: SendSaveEWS2: This operation can't be performed because this service object doesn't have an Id. Error Number: -2147467259
How To Extend EWS Until April 1, 2027:
If your organization in not yet ready to use Graph and needs to extend the use of EWS, follow the Directions Below.
You will need to Set the “EwsEnabled” Flag for your Microsoft 365 Organization and set the “EwsAllowedAppIDs” list to include the Forms Printer Application ID: a240de26-ca18-4181-8fe0-0774adfe94ef. This will allow EWS to keep working until April 1, 2027.
Connect to the Azure Cloudshell by navigating to:
https://portal.azure.com/#cloudshell/
Log in as an Azure Administrator, or Azure Security Administrator, using Multifactor Authentication
When the Cloud shell opens, type and execute the following commands at the Powershell Prompt.
Note: the part of each line after # are just comments and do not need to be typed.
Connect-ExchangeOnline
Get-OrganizationConfig | Select-Object EwsEnabled
# Check current values of EwsAllowedAppIDs and EwsEnabled ,
# if EwsAllowedAppIDs is already set, remember to reset the listed ID's when you add the Forms Printer ID (a240de26-ca18-4181-8fe0-0774adfe94ef)
Get-OrganizationConfig -RetrieveEwsOperationAccessPolicy | Format-List EwsAllowedAppIDs
Set-OrganizationConfig -EwsEnabled $true
# Enable EWS for your organization
Set-OrganizationConfig -EwsEnabled $true
# Enable EWS for the "Forms Printer For Dynamics GP Multitenant" Registered Azure Application
# (if you registered a Custom Application ID instead of using Forms Printer Default, put that ID here instead)
Set-OrganizationConfig -EwsAllowedAppIDs "a240de26-ca18-4181-8fe0-0774adfe94ef"
# Check the set value, EwsEnabled should now be True
Get-OrganizationConfig | Select-Object EwsEnabled
#Check the EwsAllowedAppIDs, should contain a240de26-ca18-4181-8fe0-0774adfe94ef
Get-OrganizationConfig -RetrieveEwsOperationAccessPolicy | Format-List EwsAllowedAppIDs
Screenshot of an example session:
