Third-Party Apps

SBaniya
Member

Api version of hubspot apex class less than version 45.0 in salesforce

SOLVE

With Salesforce retiring the JDK locale format and enabling the new ICU locale format, these components must be updated to API version 45 or higher to ensure compatibility. Components built with API version 44.0 or earlier rely on Oracle's JDK locale formats, which can cause data integrity issues and user confusion due to variations in date formats, Hubspot Integration package in salesforce has below classes which has api version less than 45.0
HubSpotController
HubSpotGlobals
HubSpotLeadNurturing
HubSpotMessageLogger
HubSpotPendingChanges
HubSpotVersionResource.

Any solution for this issue?
Or Is there a chance your team is working on new release of this package where these classes will use use API version 45 or higher.

1 Accepted solution
MinogueCRM
Solution
Participant

Api version of hubspot apex class less than version 45.0 in salesforce

SOLVE

I got a reply back from HubSpot Support. Here is what they had to say.

 

"I did more research and testing internally and discovered that the only apex class that is actively used is the "HubSpotController." The other components are basically empty and are not utilized by the current version of the integration; they were implemented quite long ago before we made improvements to the integration.

 

That said, the "HubSpotController" apex class is only utilized if you use the older version of the Visualforce window, and upgrading to Salesforce's ICU format manually does not impact the functionality of the Visualforce window.

 

Note: The current version of the Visualforce window is named "HubSpot_Embed_[object type]_V2" and is displayed in screenshots in this KB doc. You can see what version of the Visualforce window you use - if any - on your page layouts in Salesforce (KB doc).

 

With that, our guidance is to manually apply the ICU update - when your org is prepared - by following this documentation. You may receive a notification about the apex classes' API versions, but this can be ignored. From our testing, the old Visualforce window will not be affected.

 

We don't yet have an exact timeline for this, but we plan to deprecate the older version of the Visualforce page, at which point we will also remove these older apex classes."

 

In short, it does not seem that anything with HubSpot should be effected. They recommend that admins manually apply the update as supposed to letting it get pushed. I have not applied to the update but I will try to do so in the coming weeks. If anyone else can speak to if this works, that would be great!

View solution in original post

8 Replies 8
SBaniya
Member

Api version of hubspot apex class less than version 45.0 in salesforce

SOLVE

@MinogueCRMIt's strange that I received the same response ("apply manual update from the release update page") from other package providers as well. 😄 Even if we enable the test run in the sandbox, I don’t think the ICU locale format will be applied immediately. What do you think?

0 Upvotes
MinogueCRM
Participant

Api version of hubspot apex class less than version 45.0 in salesforce

SOLVE

I am working on doing some updats with another package provider. Once I get those updates applied, I will attempt to enable the test run and will report back with results on if HubSpot appears to be working as normal.

0 Upvotes
MinogueCRM
Solution
Participant

Api version of hubspot apex class less than version 45.0 in salesforce

SOLVE

I got a reply back from HubSpot Support. Here is what they had to say.

 

"I did more research and testing internally and discovered that the only apex class that is actively used is the "HubSpotController." The other components are basically empty and are not utilized by the current version of the integration; they were implemented quite long ago before we made improvements to the integration.

 

That said, the "HubSpotController" apex class is only utilized if you use the older version of the Visualforce window, and upgrading to Salesforce's ICU format manually does not impact the functionality of the Visualforce window.

 

Note: The current version of the Visualforce window is named "HubSpot_Embed_[object type]_V2" and is displayed in screenshots in this KB doc. You can see what version of the Visualforce window you use - if any - on your page layouts in Salesforce (KB doc).

 

With that, our guidance is to manually apply the ICU update - when your org is prepared - by following this documentation. You may receive a notification about the apex classes' API versions, but this can be ignored. From our testing, the old Visualforce window will not be affected.

 

We don't yet have an exact timeline for this, but we plan to deprecate the older version of the Visualforce page, at which point we will also remove these older apex classes."

 

In short, it does not seem that anything with HubSpot should be effected. They recommend that admins manually apply the update as supposed to letting it get pushed. I have not applied to the update but I will try to do so in the coming weeks. If anyone else can speak to if this works, that would be great!

jwiedenheft
Contributor

Api version of hubspot apex class less than version 45.0 in salesforce

SOLVE

Thank you for updating and sharing! I just shared your update with the Support agent I was working with because their reply didn't have the details your does! Very helpful!

0 Upvotes
MinogueCRM
Participant

Api version of hubspot apex class less than version 45.0 in salesforce

SOLVE

@SBaniya Thank you for starting this topic. I have been trying to find a solution for weeks.

 

@SSmith167 You are 100% correct. Since it is a managed package, we would be unable to update the API version in Salesforce. This will need to come from HubSpot.

 

To try and fix the issue, I did try to update our Salesforce/HubSpot integration from 3.0 (Cocunut) to 3.0.1 (Daiquiri). While this did update the API version on a handful of Visualforce Pages, it did nothing to update the Apex Classes that @SBaniya mentioned in their original post.

 

I have a ticket open with HubSpot and Salesforce and am hoping there is some sort of fix.

0 Upvotes
SBaniya
Member

Api version of hubspot apex class less than version 45.0 in salesforce

SOLVE

@PamCotton since HubSpot Integration is an managed package, I am not sure we can manually update the apex classe api version of an managed package. the updated package with the updated version needs to be provided by the service provider.

PamCotton
Community Manager
Community Manager

Api version of hubspot apex class less than version 45.0 in salesforce

SOLVE

Hi @SBaniya, thank you for posting in our Community!

 

To address the compatibility issue with Salesforce’s new ICU locale format, you’ll need to update the listed Apex classes to API version 45.0 or higher. 

 

This can be done by opening each class in the Salesforce Developer Console, editing the API version, and saving the changes.

 

To our top experts, @Crystal_Hopper and @Lucila-Andimol any recommendations for @SBaniya matter?

 

Thank you,

Pam

0 Upvotes
SSmith167
Participant | Platinum Partner
Participant | Platinum Partner

Api version of hubspot apex class less than version 45.0 in salesforce

SOLVE

This is incorrect, you can only edit the API version if it is from an unmanaged pacakge.

The HubSpot Installed App is a managed package so the app developer will need to make the updates on their end to change the API. Then we will have to install the update once deployed by the developer.