Skip to main content
16 votes

Migrating Connected App - Ant Deployment Error

According to the ConnectedApp Metadata API documentation, each connected app must have a unique consumerKey value. One way to deploy your connected app is to remove the consumerKey from the ....
cndebelen's user avatar
  • 382
16 votes
Accepted

Best practices for breaking 1 GP monoliths into 2GP modules

This is a great topic. Many Salesforce Partners are exploring ways they can leverage 2GP today, even as they wait for 1GP=>2GP migration which is currently available only as a developer preview (...
Vivek M. Chawla's user avatar
14 votes
Accepted

How to migrate entire production org to a new production org?

Some principles/tips Do not allow for new development in the old org during the migration unless critically needed. Establish a policy for communicating changes in the old org. Before the migration ...
Vladimir Romanov's user avatar
11 votes
Accepted

How to migrate aura:id to Lightning Web Components

I have found the LWC docs to offload some of this to the MDN docs, so bringing this one layer higher (in the actual LWC docs would be nice) would have made it easier for us. In scenarios where there ...
tsalb's user avatar
  • 3,735
10 votes

What are the equivalent of obtaining global and local IDs (via getGlobalId and getLocalId) for Lightning Web Components?

There is no equivalent of globalId and localId in LWC. If you want to uniquely identify an element your component render, you can add a data attribute. Live example <template> <button ...
pmdartus's user avatar
  • 2,687
9 votes
Accepted

Build an XML with a custom settings for migration in salesforce org to org

They are ordinary CustomObject entries, just as if you were migrating fields from Account or MyCustomObject__c. <?xml version="1.0" encoding="UTF-8"?> <Package xmlns="http://soap.sforce.com/...
sfdcfox's user avatar
  • 495k
8 votes
Accepted

How to move to sharing rules from one org to another in Salesforce?

Its definitely possible using Forc.com migration tool or changset . The changeset components will consists of the sharing rule both criteria and ownership based for custom and standard objects .Looks ...
Mohith Shrivastava's user avatar
8 votes

Migrate Aura components with lightning:actionOverride to LWC

You can not do it as of now. The developer guide clearly mentions it. Migrate Interfaces Implementing an Aura interface enables you to receive context data or to surface your custom component in ...
sanket kumar's user avatar
  • 15.4k
5 votes
Accepted

What is the best way to migrate code from external consultant?

Manually moving is not scalable and there will be additional challenges like everytime your external developer org needs to sync the changes you do to your sandbox organisation . The scalable and ...
Mohith Shrivastava's user avatar
5 votes

Unknown user permission: ManageSandboxes

My source and target environment were on the same version so to solve similar issue I clicked "Match Production Licenses" on source and target. Please verify.
dan's user avatar
  • 355
5 votes
Accepted

How to get dependent classes for a trigger?

You have not specified if you want this programmatically, so my guess is that you can get all dependencies with change sets. Create a change set, and then add your trigger on it. Click on "View/Add ...
Renato Oliveira's user avatar
5 votes
Accepted

Migrating data and metadata to a developer org

You'll need two separate pieces here and quite a bit more manual work, since developer editions cannot use change sets and cannot be cloned off of a production edition as a sandbox can. You need a ...
David Reed's user avatar
  • 93.2k
5 votes

Is there any way to implement a smooth customer migration from 1GMP to 2GMP?

I build 2GMP for client who has many customers installed their previous 1GMP version of the package. Respectfully, you and your client have made a strategic error here. It would've been far cheaper ...
David Reed's user avatar
  • 93.2k
4 votes

Case.object (Case.QuestionId) -- Error: fullName must end with: __c or __kav or __x or __b or __xo or __e or __p or __mdt

Looking at the doc it seems QuestionID field does not appear if you don't have an answers community enabled So some of these requires you to enable specific features in your orgs for the fields ...
Mohith Shrivastava's user avatar
4 votes

Salesforce Continuous Integration : Only components in the same namespace as the organization can be created through the API

You have to either remove the managed package items, or install the managed packages. You can use InstalledPackage to help automate the process if you want to go down the path of installing ...
sfdcfox's user avatar
  • 495k
4 votes
Accepted

Move user to a different org

You are right, user in Production is required to be created manually, and then all the user permission should be same as Sandbox. Ideally Trailhead should be used from a personal Developer org ...
Raul's user avatar
  • 18.8k
4 votes

How to get dependent classes for a trigger?

One programmatic way to do this is to use the Tooling API's SymbolTable. This complex Type includes the externalReferences. The externalReferences will detail any dependencies that the ApexClass or ...
Daniel Ballinger's user avatar
4 votes

How to migrate aura:id to Lightning Web Components

The equivalent of using aura:id and component.find() in LWC is to use a standard DOM query selector like this: const element = this.template.querySelector('selector'); element.doSomething(); We do ...
POZ's user avatar
  • 4,409
4 votes

Aura Wrapper to LWC: record-id of lwc to recordId mapping

Answering my own post/question. It was an attribute naming problem: recordId="{!v.recordId}" Somewhere I have seen record-id was mentioned (in some documentation or sample about wrapping lwc ...
Mohammed Sheriff's user avatar
4 votes

What happens when you deploy object using ANT and all fields from source to target Org?

On the object level - does it do a full replace? For example on the Account or custom object. Deploying CustomObject metadata will overwrite any corresponding metadata elements in your org, but won't ...
David Reed's user avatar
  • 93.2k
3 votes

No package.xml found: I am trying to deploy applications, classes, components, objects, pages etc from one sandbox to another

Make sure you have package.xml in your root directory from where you are deploying the metadata. Looks like you have a folder named DST. Make sure you have create a package.xml file . Package.xml can ...
Mohith Shrivastava's user avatar
3 votes

Using wildcard in migration tool package xml

Wildcards pull down all metadata of a specific type when referenced in package.xml files. You cant use them to do more specific filtering. However, ASIDE.IO does allow you to perform retrieves and ...
Phil Rymek's user avatar
  • 6,179
3 votes

Using wildcard in migration tool package xml

No. The only wildcard supported is the literal *, which matches everything. Of course, not all objects support the wildcard, so you need to check the manual. Personally, I'd recommend using a package (...
sfdcfox's user avatar
  • 495k
3 votes

Empty Key/ Random string on export?

If anyone is still looking for this answer A query on EntityDefinition will return two options for "id". Use the Durableid.
Sean's user avatar
  • 31
3 votes
Accepted

How do I migrate default home flexi page assignment from one organization to another using ANT Migration Tool?

I was informed by my colleague that to deploy default home flexi page assignment we need to retrieve and deploy custom tab component with name standard-home
Patlatus's user avatar
  • 17.2k
3 votes

Pardot Prospect sync when connecting to a new SFDC org

I will give you a short and direct answer to this.(I was only able to find it after couple of days research). The easiest way to overcome this is Do not setup existing Pardot instance with new SF ...
Sanket Nagure's user avatar
3 votes
Accepted

SFMC - Migrating Automations and Journeys from one Business Unit to other Business Unit

You can use the Deployment Manager for Journeys: https://help.salesforce.com/articleView?id=mc_overview_deployment_manager.htm&type=5 For Automations, you could try SOAP API if you have ...
zuzannamj's user avatar
  • 14.4k
3 votes
Accepted

Migration between 2 production orgs

Merging two Salesforce production orgs can be a massive and complex task. The concern that I'm feeling upon reading your post is that it sounds like your business team has not evaluated the ...
David Reed's user avatar
  • 93.2k
3 votes

How can I export all my Salesforce Community data?

This question is broad so it will likely be closed but to give you a direction to look at: You should look at FeedItem, FeedPost and FeedComment. This ERD will be helpful. The feeditems can also point ...
manjit5190's user avatar
  • 8,043
2 votes

How do we migrate SSL certificate between sandboxes

If you’re using Ant for deployment you can put the following in both your “Retrieve from Source” package.xml as well as your “Deploy to Target” package.xml : <types>   <name>...

Only top scored, non community-wiki answers of a minimum length are eligible