21
votes
Salesforce Metadata Api/ Tooling Api to build changesets
It turns out you can directly retrieve and update changesets directly with the Metadata API.
Via Sean Harrison:
Pro tip: U can retrieve the contents of a change set incl. manifest with the ...
12
votes
How to deploy lightning component with change sets
You Can Add the Lightning Component from-
Select the - Aura Component Bundle
11
votes
Accepted
Is it possible to migrate changes to OWD's / Sharing Rules via Changesets?
I know this is an old question, but either the answer has changed or the answer was wrong.
OWD is deployed as part of the metadata of the object.
https://developer.salesforce.com/docs/atlas.en-us....
11
votes
Accepted
Deploying community from Sandbox to production
The deployment of communities if they are based on a Template its little different than normally how you deploy them .
Here are some of key learnings
Deploy all metadata as you normally do ,but pay ...
10
votes
Accepted
Moving from change set model to package development model
I work for Gearset, and we talk to lots of folks with these sorts of questions, so here are my two cents based on that :)
This answer to this question is less about the size of your org / number of ...
8
votes
Accepted
Retrieve a change set from scratch org using sfdx?
I managed to create a change set in my scratch org and put the metadata I wanted to retrieve from the scratch org.
I managed to pull that change set the same way one pulls a package:
sfdx force:...
7
votes
Accepted
Can I rename API names of fields in a change set?
The API names are, in a matter of speaking, the unique Id's for your metadata. If you change the API name in sandbox 1, sandbox 2 has no idea that you did that. So when you move the metadata to ...
7
votes
Accepted
Unexpected "CalloutException" only when validating changeset
Per two known issues, W-2979657 and W-2839839:
The workaround is to set the API version of the class which makes the callout to v.33 or lower. A class with an API version of 34 or higher will ...
7
votes
Accepted
"No such column 'New_Field__c' on entity 'Custom_Object__c'" when querying Object deployed via Change Set
You almost certainly omitted permissions to read this field for your profile. Edit the Field Level Security and make sure you have at least Read access.
7
votes
Accepted
Timing of New Changes in Change Sets
Will the changes that occurred in step #3 be deployed in the Target org?
Yes. The contents of the Change Set are not locked in until the point when it is uploaded.
Once the Change Set has been ...
7
votes
Accepted
Invalid property [hideChatterActions] in component [force:highlightsPanel]
I work for Gearset and we've seen this error crop up a little in the past few days. It's a Salesforce metadata API bug where it looks like metadata from the newer version is leaked via earlier ...
6
votes
Custom object tab missing after move from sandbox to production using change set
Every profile has tab settings for each object, so if you didn't include Profiles in your change set, then they are most likely defaulted to "Tab Hidden". In this case, they won't be visible.
In the ...
6
votes
Accepted
Schedule deployment change set
You can use the Force.com Migration Tool (ant) and write a small script to do this.
The steps would be:
ant retrieve from the source org
ant deploy to the target org
You would need somewhere to run ...
6
votes
Accepted
Basic Change Set Question
When you upload the outbound change set a snapshot of the metadata is packaged together for deployment in the target org. After that you will need to clone the change set and upload again to pickup ...
6
votes
Accepted
ChangeSet Issue : Cant we deploy picklist in changeset?
You can use a Change Set to deploy Custom Picklists however it will not pickup custom values in the standard picklists such as Account.Industry, Case.Reason, etc.
To deploy the custom values in ...
6
votes
Field accessibility not deployed through change set
You need to deploy Profile as well which you were changed the accessibility
6
votes
Field accessibility not deployed through change set
You will need to deploy the necessary profiles along with the fields to carry over the field accessibility .
Field Accessibility has dependency on the profiles and change sets by default does not ...
6
votes
How To Deploy Standard Field & Permissions?
There is currently no way to perform this task if you are exclusively using change sets. This is something which will have to be manually done via the point and click interface for every profile / ...
6
votes
How to deploy lightning component with change sets
Lightning components are available in the Lightning Component Bundle in the drop-down list of the changeset.
You can refer to this:-
https://help.salesforce.com/articleView?id=...
6
votes
Accepted
Why won't Apex IF statement work in Production Unit Testing after working in sandbox?
This is a Known Issue that should be fixed in Spring '19. Until then, consider using a List<String> instead (as mentioned in the workaround), or use a Set<Id> instead, which should be more ...
6
votes
Accepted
Is there a way to programmatically access change sets as records?
Treat change set as an unmanaged package/manage package. You can extract all the metadata as a zip using the package name. Workbench already supports this and also the CLI
You can use the Salesforce(...
5
votes
Accepted
How do you include fields values in MDT packages?
You can deploy custom metadata records in changesets, but you have to add them to the changeset (which is different from just adding the type). In the "Component Type" dropdown, look for the name of ...
5
votes
Accepted
Unable to deploy Changeset
You cannot deploy components that are version 37.0 until your Production org is updated to new release .
There are certain components that you may downgrade (like apex,VF,components) using IDE and ...
5
votes
Accepted
Simple trigger generates code coverage error
In order to deploy any Apex Trigger, Salesforce requires that the trigger body has greater than 0% code coverage, in addition to requiring that system-wide coverage be at least 75%. So you cannot ...
5
votes
Deployed profiles not being deployed?
In order to deploy permissions with a changes you have to have BOTH of the following:
Profile included in the chageset
The items related to the permissions being deployed.
For #2 in your case you ...
5
votes
Accepted
Deploying Permission Sets using Change Sets - came to destination org without the Assigned Users
Permission Set Assignments are data in the org. The DML operation cannot be performed by a Change Set - but this sample code might help you in automating the assignments.
// the user reference
User u ...
5
votes
Accepted
Deployment From one Dev org to another Dev Org
From documentation:-
You can move metadata only between the production org and its
sandboxes. You can’t move changes between two production orgs or
Developer Editions.
You can take advantage ...
5
votes
Accepted
Napili Community: delpoy navigation menu
Step 3 of the documentation/blog post you linked:
Step 3: Go to the Community Management console and update your
administrative settings, topics, moderation criteria, etc. as these do
not carry over ...
5
votes
Accepted
Successfully deployed change set still shows in 'Awaiting Deployment', can I delete it?
Deleting a deployed change set will not roll back the changes made therein. You can delete this change set without repercussion, as long as you don't count having it missing from your deployment ...
5
votes
Deployment Validations Changing Master-Detail to Lookup (or vice versa)?
When you come across something like this is is useful to link to the source in addition to providing a screenshot. I assume you are referencing Validate a Change Set
If you change a field type from ...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
change-set × 402deployment × 174
apex × 48
sandbox × 33
unit-test × 27
profile × 18
trigger × 15
code-coverage × 14
visualforce × 13
metadata × 13
ant × 13
production × 13
community × 11
permissions × 11
metadata-api × 10
administration × 10
migration × 9
process-builder × 8
custom-object × 8
permission-sets × 7
custom-metadata × 7
migration-tool × 7
salesforcedx × 6
api × 6
custom-field × 6