How to disable auto enabled flight key using KillSwitch

Microsoft is introducing new functionality into Dynamics 365 for Finance and Operations with flight keys in every other new release. For this they use Flight classes so that the changes are automatically applied and can be reversed. 

Example of a flight class that control the functionality of a new set of functionality. 

When a flight key that enable functionality can be found in the flight key table SysFlighting

To disable the functionality don't delete or change the enabled flag on the flight record, instead insert a KillSwitch record. The KillSwitch record will ensure that the flighed functionality will stay disabled as long as it exist in the flight table. 


In an environment that Microsoft maintain can raise a support ticket in LCS to disable specific flight keys. 

SQL statement for insert the KillSwitch record. 






DECLARE @flightName NVARCHAR(100) = 'WHSWorkCancelForcedFlight_KillSwitch'
IF NOT EXISTS (SELECT TOP 1 1 FROM SysFlighting WHERE flightName = @flightName)
       INSERT INTO SYSFLIGHTING(FLIGHTNAME,ENABLED, FLIGHTSERVICEID) VALUES('WHSWorkCancelForcedFlight_KillSwitch', 1, 12719367);
ELSE
       UPDATE SysFlighting SET enabled = 1, flightServiceId = 12719367 WHERE flightName = @flightName;

Comments

Popular posts from this blog

Technical intro to Feature management in D365FO

Continuous integration and deployment Power platform FinOps tweaking