I thought this came up before but I can't find it..
CustomNotificationType was introduced in API 46. I have a TWS project on API 45.
list<CustomNotificationType>types = [SELECT Id, DeveloperName FROM CustomNotificationType]; system.debug(types);
In the developer console, this works fine - returns a bunch of records. In TWS, it says "Invalid type: CustomNotificationType".
I tried right-clicking on the project and changing the API version to 46 but that doesn't help. If I restart TWS, it goes back to 45.
I tried manually updating the .sfproj file <ApexVersion> node to 46 but that doesn't work either. It doesn't change back to 45 but also doesn't help the problem.
Is there any way to update the project to a newer version without totally recreating it?
edit: and recreating the project doesn't help either - there's nowhere to set the version and it gets automatically set to 45.