Monday, 13 September 2021

How to change aura component bundle version ?

Source org and target org should be in compatible version to have successful deployments There are sometime org which will have higher version that might not supported in production. This could happen when a particular instance is in release preview and if we add new component in that org. That new component will have higher salesforce API version.

While deploying we might get errors. Changing version in Apex and VF page is easy. 


Setup-->Apex Class-->Click Edit next to class -->Version Settings -->Change version


How to change version number of Aura Component ?

1. Developer console Query Editor 

2. Query - SELECT Id, DeveloperName, ApiVersion, Description FROM AuraDefinitionBundle WHERE DeveloperName = 'your component Name'

3. Change version in the results

4. Click Save




No comments: