The Welkin Suite Forum

Can't change API Version



Can't change API Version

  • Please log in to reply

#1
windows version welkinsuite

dave

    Posted 23 Jan 2020 and edited 03 Feb 2020

    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.



    4 replies to this topic

    #2

    dave

      Posted 23 Jan 2020

      Ok.. Maybe not as bad as I had feared.. I can change an apex file to have an API version to 47 and that seems to let that file compile. For reasons I don't understand, 46 does not work even though it should be there: https://developer.salesforce.com/docs/atlas.en-us.220.0.api_meta.meta/api_meta/meta_customnotificationtype.htm says it is.


      This does not help TWS anonymous apex or the soql editor, though.



      #3

      ihor.zhabolenko

        Posted 29 Jan 2020

         Hello Dave!


        I hope you are doing well and thank you for paying attention to this!


        We are going to support a new API version soon. I will update you during the nearest weeks.


        Best Regards,  

        Ihor


        TWS Team


        #4

        dave

          Posted 29 Jan 2020

          Thank you!



          #5

          ihor.zhabolenko

            Posted 03 Feb 2020

            Hi Dave!


            Thank you for your collaboration!


            If you any other questions just let us know we will be happy to help you!


            Best Regards,

            Ihor


            TWS Team





            Boost Your Productivity. Get Started Today

            Try Free Trial