I am trying to deploy some components through retreive-deploy fascility of Workbench and while deploying, the deployment of lightning controller class is failing with error:
SOQL TYPEOF expressions are not supported in this organization
I have used following query in the class which usees TYPEOF clause:
SELECT TYPEOF SetupOwner WHEN Profile THEN Name WHEN User THEN Name END, FROM MyCustomSetting__c
Do we need to unable something in target org to allow use of TYPEOF?