function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
eyal kama 28eyal kama 28 

The subscriber is not on the latest release of salesforce.com

How can I create a package that can be installed on an env that is on the previuos SF versions even though I packed it on an org who is on the latest env?

 
VinayVinay (Salesforce Developers) 
Hi Eyal,

As per my understanding you cannot create preivous version on latest environment.

https://developer.salesforce.com/docs/atlas.en-us.sfdx_dev.meta/sfdx_dev/sfdx_dev_unlocked_pkg_create_pkg_ver.htm

Thanks,
Emmanuel Bruno 8Emmanuel Bruno 8
@Vinay, according to the last paragraph of your link you can : https://developer.salesforce.com/docs/atlas.en-us.sfdx_dev.meta/sfdx_dev/sfdx_dev_unlocked_pkg_target_release_version.htm
You just have to update your package.def.json file with ,`"release": "previous"` and create the version with `-f "config/package.def.json"`.
Just tested it, it works.
eyal kama 28eyal kama 28
thanks you Emmanuel