You need to sign in to do that
Don't have an account?
Vinay Chanchlani
How To Determine the Expiration of installed packages programmatically ?
I was looking for the way to programmatically determine the expiration date of package licenses via PackageLicense Table, I've tried this with following ways :
1.) Via Status Column of PackageLicense Table, but it seems that the status column in this table do not changes to Expired even after the package has expired on the org.
2.) Via ExpirationDate column, not able to understand how this expiration date is exactly used in salesforce implementation because I checked this with both user timezone and org's timezone but sometime it gets expired according to user's timezone but sometime its not exactly behaving in that way.
I've also crossed check this with GMT but seems like it do not depends on timezone.
Problem is Expiration date-time has crossed but package is still accessible to me and gets expired after some undetermined time.
Please let me know how can I exactly determine programmatically whether my package has expired or not.
1.) Via Status Column of PackageLicense Table, but it seems that the status column in this table do not changes to Expired even after the package has expired on the org.
2.) Via ExpirationDate column, not able to understand how this expiration date is exactly used in salesforce implementation because I checked this with both user timezone and org's timezone but sometime it gets expired according to user's timezone but sometime its not exactly behaving in that way.
I've also crossed check this with GMT but seems like it do not depends on timezone.
Problem is Expiration date-time has crossed but package is still accessible to me and gets expired after some undetermined time.
Please let me know how can I exactly determine programmatically whether my package has expired or not.
please check here: https://developer.salesforce.com/docs/atlas.en-us.api.meta/api/sforce_api_objects_packagelicense.htm
Cheers!