Salesforce Stack Exchange is a question and answer site for Salesforce administrators, implementation experts, developers and anybody in-between. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

How to find the expiration date of an org in

I tried this query:

Select TrialExpirationDate from Organisation

but it is returning null as the org is purchased one.

So, how can we find the expiration date of a purchased org?

share|improve this question

TrialExpirationDate tell us the date on which Trial is going to expire.

IF you have normal Dev org or purchases org then this field will be NULL

From the doc:

Description: The date that this organization's trial license expires.

I think if you want to find the expiration date purchases org then you need contact to SFDC support.

share|improve this answer
Or your account executive. – sfdcfox Jul 1 '14 at 15:00

Try this:

Select TrialExpirationDate from Organization


1.At above shared query, Organization is misspelled.

2.User must have the “View All Data” permission to access this object.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.