Is there a way to import the salesforce metadata back into salesforce?
I would to export export lead list view metadata change the sobject from lead to account and load it back. I can retrieve it with workbench but i dnt know how to load it back.
Salesforce Stack Exchange is a question and answer site for Salesforce administrators, implementation experts, developers and anybody in-between. It only takes a minute to sign up.
Sign up to join this communityIs there a way to import the salesforce metadata back into salesforce?
I would to export export lead list view metadata change the sobject from lead to account and load it back. I can retrieve it with workbench but i dnt know how to load it back.
You can use a package.xml file to deploy it via workbench or VS Code. A sample xml file for retrieving the account list view is:-
<?xml version="1.0" encoding="UTF-8"?>
<Package xmlns="http://soap.sforce.com/2006/04/metadata">
<types>
<members>Account.AccountTeam</members>
<name>ListView</name>
</types>
<version>48.0</version>
</Package>
To deploy back again after some change in it via Workbench:-
To perform a Deploy operation (Upload changes from the configuration data to Salesforce):
Auto Update Package Check Only Ignore Warnings Perform Retrieve Purge On Delete Rollback On Error Single Package
Read more here:- Use Metadata API to retrieve and deploy using Workbench
Read more about ListView metadata here:- ListView