Newer Version Available
SignupRequest
Supported Calls
create(), delete(), describeLayout(), describeSObjects(), getDeleted(), getUpdated(), query(), retrieve(), undelete()
Fields
| Field Name | Details |
|---|---|
| AuthCode |
|
| Company |
|
| ConnectedAppCallbackUrl |
|
| ConnectedAppConsumerKey |
|
| Country |
|
| CreatedOrgId |
|
| CreatedOrgInstance |
|
| Edition |
|
| ErrorCode |
|
| FirstName |
|
| LastName |
|
| PreferredLanguage |
|
| ResolvedTemplateId | |
| ShouldConnectToEnvHub |
|
| SignupEmail |
|
| SignupSource |
|
| Status |
|
| Subdomain |
|
| SuppressSignupEmails |
|
| TemplateId |
|
| TrialDays |
|
| TrialSourceOrgId |
|
| Username |
|
Usage
The Java class uses the REST API to create a SignupRequest object. It authenticates to the Trialforce Management Organization and then posts a request to the SignupRequest object.
- SERVER — The name of the host server for the Trialforce Management Organization (TMO), for example, “yourInstance.salesforce.com.”
- USERNAME — The admin username for the TMO.
- PASSWORD — The concatenation of the admin password and the security token for the TMO. To get an email with the security token, from your personal settings in Salesforce select Reset My Security Token and click Reset Security Token.
- CLIENT_ID — From Setup in Salesforce, enter Apps in the Quick Find box, select Apps, and click New under Connected Apps. Enter values for the required fields (the Callback URL is required but can initially be set to any valid URL as it's not used), grant full access for the OAuth scopes in the "Selected OAuth Scopes" selector, and click Save. Then copy the value of “Consumer Key” and use it for this variable.
- CLIENT_SECRET — On the same page, click Click to reveal. Then copy the value of "Consumer Secret" and use it for this variable.
Error Codes
If the sign-up fails, the system generates an error code that can help you identify the cause. This table shows the most important error codes.
| Error Code | Description |
|---|---|
| C-1007 | Duplicate username. |
| C-1015 | Error while establishing the new org’s My Domain (subdomain) settings. Contact Salesforce support for assistance. |
| C-1016 | Error while configuring the OAuth connected app for Proxy Signup. Verify that your connected app has a valid consumer key, callback URL, and unexpired certificate (if applicable). |
| C-1018 | Invalid subdomain value provided during signup. |
| C-1019 | Subdomain in use. Choose a new subdomain value. |
| C-1020 | Template not found. Either the template doesn't exist (or it was deleted). |
| C-1033 | Template is the wrong version. |
| C-9999 | Generic “fatal error.” Contact Salesforce support for assistance. |
| S-1006 | Invalid email address (not in a proper email address format). |
| S-1014 | Invalid or missing parameters during signup process. Possible
solutions include:
For scratch orgs, be sure that you indicate only supported features in scratch org definition file. |
| S-1017 | Namespace isn’t registered with a release org associated with the Dev Hub. |
| S-1018 | Invalid My Domain (subdomain) name. Select a name that doesn’t:
|
| S-1019 | My Domain (subdomain) already in use. |
| S-1026 | Invalid namespace. Namespaces must begin with a letter, must not contain consecutive underscores, cannot be a restricted or reserved namespace, and must be 15 characters or fewer. |
| S-2006 | Invalid country. |
| T-0001 | Template ID not valid (not in the format 0TTxxxxxxxxxxxx). |
| T-0002 |
Template not found. Either the template doesn't exist (or it was deleted). |
| T-0003 | Template not approved for use by Salesforce. |