You need to sign in to do that
Don't have an account?
Raza Hussain 2
System.requestVersion().patch() returns null instead of patch Version
Hi
I was trying to get the patch version and i have seen the salesforce doc for this purpose but it seems no matter what i do it will just return null instad of the patch version has anyone experience the similar problem or if anyone knows about this behaviour can they help me out please.
Thanks
patch() will return the patch package version of the calling code or null if there is no patch version.
Regards,
Leo
Hi Leo,
Can you try that and give me some general directions becuase i have tried various different patches but it still returns me null everytime.
Thanks
Did you try with
System.requestVersion().major()
System.requestVersion().minor()
The version number has the format majorNumber.minorNumber.patchNumber (for example, 2.1.3). The major and minor numbers increase to a chosen value during every major release. The patchNumber is generated and updated only for a patch release.
Regards,
Nabeel
Hi Nabeel
So for example if i have a version as 4.567.89 and the System.requestVersion().minor() will return 567 and .major() will return 4 so if i use the patch() then it should return me 89 but it returns null. I was wondering why would it return null to me rather then 89.
Thanks
Are you sure that there is a patch Number in it?
Regards,
Nabeel
Hi Nabeel
Yes i am Sure of that have you tried it on your end.I mean have you run the code and did it return null or patch number.
Thanks