Questions tagged [sandbox]

A sandbox is a copy of your production environment that can be used for various purposes such as development, testing, or training. The three types of sandboxes are developer, configuration-only (config-only), and full (full-copy). The login page for sandboxes is https://test.salesforce.com/.

Filter by
Sorted by
Tagged with
1
vote
1answer
26 views

Is there a way to regularly schedule sandbox refreshes to stay on either a non-preview or preview instance?

Are sandbox refreshes randomized as far as the instance it refreshes to? Current Scenario: I'm on a non-preview instance. I would need to refresh after January 8th, 2022, the preview cutoff date. ​...
3
votes
1answer
73 views

Question about Unorganized Org/Sandboxes

So I'm fairly green when it comes to development. I left a company that had an insanely structured enterprise Salesforce organization with many teams and joined one that I'm realizing is pretty much ...
0
votes
0answers
24 views

Enhanced Lightning Grid error in dev sandbox but not prod

I haven't used enhanced lightning grid extensively in the past, but a previous admin has three components on a lightning page for contacts. They are working in production and when I edit that page in ...
3
votes
2answers
187 views

SFDX: how to ensure you are in the right org?

I am just getting started with using VSCode to work on an apex class. As I do not want to touch the sandbox I got the code from originally, is there a quick way to see what org I am connected to at ...
5
votes
2answers
350 views

Winter 22 Sandbox permission error

In our testing Sandbox environment, now on "Winter 22 Patch 3.2", we have started getting this error for non-admin users viewing account pages: Looks like there's a problem. Unfortunately, ...
0
votes
1answer
24 views

Can we create sandbox via metadata in apex salesforce?

I know that it can be impossible , I have requirements to create a sandbox for organization via a button on Custom object record. Can we create a sandbox via metadata in Apex or some process ? Any ...
1
vote
0answers
12 views

Are custom labels in sandboxes automatically altered if they contain an organization id? [duplicate]

We have a custom label that contains the organization id of our production org, to help regression/acceptance testing in sandboxes. Typically, the label is compared to the org id to determine to which ...
0
votes
0answers
70 views

SFDX: Diff Folder Against Org - see only the files with diffs

I'm working with a sandbox org which is not source-tracked because I don't have access to the Prod org, so I don't think I can use SFDX: force:source:status. After running SFDX: Diff Folder Against ...
0
votes
0answers
23 views

When I call PackageLicense SOQL query using rest API, I am getting duplicate records with same "NamespacePrefix" value in the API response

SOQL query - SELECT AllowedLicenses, CreatedDate, ExpirationDate, Id, IsProvisioned, LastModifiedDate, NamespacePrefix, Status, SystemModstamp, UsedLicenses FROM PackageLicense When I call the above ...
2
votes
1answer
103 views

Insufficient Privileges On Custom Object Deletion

I am observing a weird behaviour on scratch org, When I tried to delete the custom object it throw an "Insufficient Privileges" error, but this is happening when only financial service cloud ...
0
votes
1answer
23 views

Nothing shows in Personal Settings --> Connected Accounts in sandbox org

After successfully setting up Einstein Activity Capture (for Google) on my production org, I then assigned the Standard Einstein Activity Capture permission set to a user. In the production org I was ...
1
vote
1answer
168 views

How To Enable Einstein Activity Capture In Sandbox Org

After successfully setting up Einstein Activity Capture (for Google) on my production org, I then created a sandbox for it. In the sandbox org, when I go to Einstein Activity Capture in Settings, the ...
3
votes
1answer
133 views

Why can't I refresh any of my sandboxes

I am unable to refresh any of my sandboxes We have 20 remaining Developer sandboxes We have used 5 Developer, 1 Partial and 1 FullCopy.
0
votes
1answer
41 views

Impact of uninstalling installed package from production on sandbox?

I have to remove all of the installed packages (mostly managed packages) from Production. Reason: Some of the packages are unwanted now and for others a different package version(not higher) is ...
2
votes
0answers
90 views

How to handle expired access/refresh token from visual studio

Currently, I'm facing an issue while retrieving package.xml after refreshed the sandbox. Error authenticating with the refresh token due to: expired access/refresh token Note: I have reauthorized the ...
0
votes
2answers
82 views

Best Practices for Change Set and Deployments

If we built an entire web of objects and tons of flows and apex code that goes along with them. Would it make sense to split this into 2 pieces. The first one containing only the object and fields, ...
0
votes
0answers
46 views

not available for deploy for this org error using VSCode

I recently refreshed my sandbox and trying to deploy some new files, myApexClass.cls, to the sandbox through VSCode, but I am getting the following error message. Question How do I resolve this issue ...
0
votes
1answer
19 views

Difference between sending leads into Dev account as opposed to Sandbox account? Leads not sent into Sandbox with similar settings as Dev account

We have created a webapp to send Leads into the salesforce system, which works great in our Dev account. However when using the same app for another business, which has a Sandbox account, the Leads ...
1
vote
1answer
299 views

Messaging.sendEmail not sending emails for non-admin profile in sandbox

In a partial sandbox I am calling Messaging.sendEmail through an @InvocableMethod through a Flow, and emails are not going out for a non-admin profile. There are no errors anywhere and even debugging ...
3
votes
0answers
54 views

How to access a refreshed Sandbox in CI/CD? [duplicate]

We are using the classical machine-to-machine approach to connect to our DevHub to create scratch org, but in pre-release we need to connect to sandbox environments, which we would like to refresh ...
0
votes
1answer
563 views

Process Builder: Ischanged() does not work for new records

I am trying to create a process that runs when it meets the following criteria: Field A has been inserted or changed Field B has a certain picklist value(Attended or connected) Field C or Field D(...
0
votes
1answer
131 views

Bring validation rule to VS Code project

I am new to Salesforce and I have a question regarding to my first real task so I don’t make nothing wrong. I have created a new validation rule in my sandbox and I want to bring this to my Visual ...
0
votes
2answers
37 views

Experience Cloud Visualforce page is having library and resource loading issues after cloning a Sandbox from Production

The Visualforce page is working fine in prod, but I spun up a Sandbox to do some dev work on it and the CSS wasn't loading, nor was jQuery. jQuery seems to be the first area where things start to ...
2
votes
1answer
402 views

How to ensure 100% code coverage for isSandbox() method branches [duplicate]

I am using the isSandbox() method outlined in the article Determine the organization's edition and environment via APEX code, to determine whether my current org. is a Sandbox. Sample code from the ...
1
vote
1answer
34 views

Managed Package on Sandbox : Namespace is not removed and the entire app just crashes

I've installed a managed package (released version) on a sandbox and it doesn't work because Namespaces are not removed on the Custom fields API name from Lightning component controllers : From my dev ...
1
vote
0answers
88 views

I cannot change the status of contracts in a sandbox environment (Full copy)

I am having an issue. In a sandbox environment, I cannot change the statut of contracts as system admin, from draft status to any status. This message error displays :" You encountered some ...
0
votes
0answers
38 views

How to find which sandbox a user was created in?

A friend asked me how to figure out which sandbox their user was created in because the username is not being allowed to be reused. Attempts to use Forgot Your Password? at test.salesforce.com have ...
1
vote
0answers
40 views

OAuth2 to Sandbox community with `refresh_token` - requested scope not available

I am using Salesforce Mobile SDK for iOS which uses OAuth 2.0 User-Agent Flow. When authenticating against a community, the URL looks like so https://<Community>/<OptionalPath>/services/...
1
vote
1answer
87 views

Can't connect cloned repo to sandbox in VS Code

I'm using VS Code, Bitbucket, and a standard sandbox (not scratch org).  What's the correct procedure to clone an existing repository and connect it to the sandbox? I've read this question/answer but ...
1
vote
0answers
167 views

Can we refresh Partial Copy sandbox without any data just like developer sandbox

I have a partial copy sandbox created recently and I see that Salesforce loaded around 1.5GB of data from Production. While refreshing partial copy sandbox, I have created a sandbox template including ...
2
votes
1answer
68 views

how I use skinny tables in a sandbox

If I plan to use Skinny tables in my org, and say use it for accounts to improve performance issues, and as a result, set up say 30 fields in the skinny table, how do this work in the sandbox if ...
0
votes
0answers
85 views

Access REST API with Connected-App and JWT Bearer Token Flow

I read this article and created php demo script. https://help.salesforce.com/articleView?id=sf.remoteaccess_oauth_jwt_flow.htm&type=5 Environment: Sandbox OAuth Scopes: api, refresh_token, ...
0
votes
1answer
12 views

How can we restrict managed package not to installed by default in sandbox when refresh sandbox or created from production

How can we restrict managed package not to installed by default in sandbox when refresh sandbox or created from production .
0
votes
1answer
57 views

Convert lead com.sforce.ws.ConnectionException error

I have been using SOAP API(v43.0) and patner wsdl(v43.0) for converting leads. It was working fine till sometime. But recently it started failing with com.sforce.ws.ConnectionException. And this is ...
0
votes
1answer
57 views

Community in partial sandbox

In December, I created a partial sandbox from production.  I have several Communities in production.  Today, I went to publish my community in the partial sandbox only to discover that there doesn't ...
0
votes
1answer
277 views

Is Pardot Sandbox available to install for everyone

I want to install Pardot Sandbox. Please note that, we already have Pardot that was purchased before 2018. We do not have a full Salesforce sandbox. I could'nt find a clear documentation that tells me ...
0
votes
0answers
137 views

INVALID_ARGUMENT_TYPE on ContentVersion insert in test method, varies by sandbox

I'm getting an exception in one sandbox and not another, anytime I try to insert a ContentVersion. I created a simple test to distill this down to its essence: @isTest public class SampleTest { @...
1
vote
1answer
77 views

PushTopic record not getting copied over while creating/refreshing the full sandbox

We create trial orgs from environment hub with managed packages and related configuration. This configuration also includes a PushTopic record. However while creating/refreshing full sandboxes from ...
0
votes
0answers
198 views

MTLS certificate error

I have been breaking my head to get the Mutual Authentication(MTLS) to work in Salesforce for a while but with little success. I am trying this out on a sandbox by enabling this feature and by ...
0
votes
1answer
74 views

Enabling content delivery in old sandbox org

Current issue I have is installing a new version of a package on an old sandbox org but it gives me the error "Class MY_CLASS: Invalid type: Schema.ContentDistribution". I am trying to ...
1
vote
1answer
218 views

How to set up VS code so I can switch smoothly between different sandboxes?

I followed this really helpful guide to set up my VS Code environment and was able to get my Dev sandbox connected. Now I want to connect another sandbox (e.g. QA) to my VS Code because my goal is to ...
0
votes
1answer
137 views

User/Profile access to Organization fields (IsSandbox) in Flow

I have a Flow that checks the Organization field "isSandbox" to determine whether or not to email a test address or a real address. However, when logged in as a non-admin user, this field is ...
1
vote
1answer
106 views

Does developer edition salesforce org's run in production environments?

I'm studying for a certification, this doubt came t me, and I couldn't find any documentation regarding this, I was trying to find differences between dev-sandbox and production, besides the size, ...
0
votes
1answer
37 views

Automated copy of records only (no metadata) from Production to Sandbox

I have read and researched on google and find that any refresh, clone or copy options copies all or selected data plus the metadata or only the metadata from the Production org to Sandbox. Is there a ...
0
votes
1answer
196 views

Conflict connecting to different org with same username and password

Conflict connecting to different org with same username and password. Is there any other way to login to the correct org? I am a user in two different salesforce orgs. My profile is System ...
0
votes
1answer
40 views

Do you need to create new outbound changeset when components are modified?

Let's say I have created an Outbound ChangeSet with a few components like Page Layouts and Lightning Flows. I haven't pushed the change set to Production yet. In the meantime, I decided to make some ...
0
votes
2answers
176 views

How long does a trailhead playground org last?

When I go to trailhead I have a "Hands-On Orgs" option under my profile picture. How long does an org created through that menu last? Screenshot of the menu Screenshot when creating a new ...
0
votes
1answer
46 views

Custom button behaves differently in different sandboxes

I am fairly new to salesforce and have never used a sandbox before. Currently, I am working with two sandboxes provided by a client. In one sandbox a custom button I added by using URL hack is working ...
-1
votes
1answer
79 views

INVALID_FIELD_FOR_INSERT_UPDATE, cannot specify Id in an insert call While testing my Apex Trigger

I am new to salesforce, and I am getting an error : INVALID_FIELD_FOR_INSERT_UPDATE, cannot specify Id in an insert call I am trying to test my Trigger My Trigger trigger invoiceTrigger on ...
2
votes
0answers
232 views

CORS Issue loading static resources in lightning

In Winter '21 we have started getting a CORS error when loading resources from static resources. We believe it relates to this. If this is the intended behaviour, what is the recommended way of ...

1
2 3 4 5
13