web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Answered

Retail Notification "Customer Created", issue with flight/feature "RetailCreateCustomerEmailNotificationCheckToggle"

(0) ShareShare
ReportReport
Posted on by 252

Hi 

I'm having an issue with the Retail notification for the customer created event. Eventhough we have not enabled the retail notification templates for the Customer created event, and email notification is added to the log, which results in an error (as there is no template) and eventually leads to the log being full, and no emails being sent.

I've been debugging the code and it seems the issue is the with the flight feature.

internal abstract class WHSEnabledByDefaultToggle implements WHSIFeatureToggle
{
    public boolean isEnabled()
    {
        const int MaxLengthOfFlightNameInCarbon = 64;
        SysFlightName flightName = classId2Name(classIdGet(this));
        SysFlightName carbonFlightName = subStr(flightName, 1, MaxLengthOfFlightNameInCarbon);
        
        if (flightName == carbonFlightName)
        {
            return !isFlightEnabled(flightName);
        }
        return !isFlightEnabled(flightName) && !isFlightEnabled(carbonFlightName);
    }

}

The flight name is "RetailCreateCustomerEmailNotificationCheckToggle"

I've tried adding this flight to the commerece parameters, with no success. I guess this flight should be added to the SYSFLIGHTING table but it isn't. I've even tried manually inserting it into SYSFLIGHTING, but still the retail event notification is being triggered.

Also function isFlightEnabled. is checking if either the Flight "RetailCreateCustomerEmailNotificationCheckToggle" is enabled or the feature ""RetailCreateCustomerEmailNotificationCheckToggle"" is enabled.

I really don't know where to add the flight/feature. 

Anybody any ideas?

 public static boolean isFlightEnabled(SysFlightName _flightName)
    {
        if (!appl)
        {
            logMissingAppl(funcName(), strFmt('Flight \'%1\' could not be checked. False (default) was returned.', _flightName));
            return false;
        }

        return  appl.isInTransactionScope()? SysTestFlightingManager::isFlightEnabled(_flightName) :  SysFlightingService::isFeatureEnabled(_flightName);
    }

I have the same question (0)
  • Verified answer
    huijij Profile Picture
    19,811 on at

    Hi Hanna85,

    Which version are you using? If the issue persists suggest you raise a ticket with Microsoft.

  • Suggested answer
    Hanna85 Profile Picture
    252 on at

    Hi Judy

    Thanks for your reply. We have had opened a ticket with Microsoft, the couldn't help.

    I actually found out that I have to manually insert an entry in the SYFLIGHTTABLE:

    set "RetailCreateCustomerEmailNotificationCheckToggle" with enbaled=1. Then it works. We now have to tell Microsoft to enter the entry on the Production environment.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Martin Dráb Profile Picture

Martin Dráb 584 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 499 Super User 2025 Season 2

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 254 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans