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);
}