Commit changes to your source repository from the Change Management tab. After reviewing the changes, select the ones you want to include in the work item, then commit them to your Lifecycle Center project repository. When you commit changes, DX Inspector stores them in the repository branch created when the work item moved to the In Progress status.
Required Editions
| Available in: Lightning Experience |
| Available in: Professional, Enterprise, Performance, Unlimited, and Developer Editions |
| User Permissions Needed | |
|---|---|
| To commit changes: | Customize Application |
| To commit changes: | Lifecycle Center User in Lifecycle Center Hub org |
See Also
Connect to Lifecycle Center
Connect your development environment, such as sandbox, scratch org, or Developer Edition org, to your Lifecycle Center project.
Turn on Lifecycle Center from Setup. See Enable DevOps Center.
- Log in to your sandbox, scratch org, or Developer Edition org.
-
Click
on DX Inspector to open the DX Inspector panel.
- From the DX Inspector panel, open the Change Management tab.
-
Click
, and then select Connect Lifecycle Center.
This action authenticates the connection to the Lifecycle Center source repository. On successful authentication, all uncommitted changes are listed.
Select Metadata to Commit
Metadata defines the structure of your Salesforce org, such as custom objects, fields, and layouts.
If there are no work items, create a new work item in DX Inspector or Lifecycle Center.
- On the Metadata tab, select the metadata files to commit.
- (Optional) Add metadata manually. See Add Metadata Manually.
-
(Optional) To view relationships for a selected metadata component, click the down arrow
icon, then select View Dependencies....
The Metadata Dependencies window shows the metadata relationships in a hierarchical tree.
- (Optional) Select related metadata to commit.
Select Data Records to Commit
Configuration data includes the records that your app needs to run, such as custom settings and price book entries. Map these records with a unique External ID so Lifecycle Center identifies and matches them correctly.
For information about data commit, see Data Commit and Deployment.
- On the Data tab, find the data object that you want to commit.
-
In the data object row, click the down arrow (
) icon, and then select Select Associated Records....
-
To configure the selected object, complete these steps:
- Select a unique External ID to map records and prevent duplicates.
- (Optional) To include only specific fields, click Edit Fields. By default, the required fields are selected.
- (Optional) To commit a subset of records, click Add Filters, and define your filter criteria.
-
Click Select Related Objects.
Related parent and child objects are listed. Parent objects are selected by default.
-
On the Child Objects tab, select a unique External ID to map records and prevent
duplicates.
- Select the records to commit, then click Review Configuration.
-
(Optional) In the data object row, click the down arrow (
) icon to download or remove the records.
- Review the list of filtered records and click Add.
Commit Metadata and Data
Committing changes associates your selected metadata and data changes to a work item. DX Inspector saves committed changes in the repository branch created when the work item moved to the In Progress status.
- On the Change Management tab, click Commit Options….
-
Select a Lifecycle Center project.
Only work items in the project with the statuses In Progress, In Review, and Ready to Promote appear.
- Select a work item, and then click Next.
-
Add a commit comment that clearly describes the changes.
The comment helps in identifying your commit, especially when the work item has multiple commits.
-
Review your changes, and then click Commit.
If you configured a .forceignore file, metadata listed in that file is excluded from the commit. See Exclude Metadata with the .forceignore File.
When a commit succeeds, create a change request in DX Inspector. If your commit fails, see Stalled Commits.