+ Start a Discussion
Vijay ummedaVijay ummeda 

How to add metadata file from developer console

Hi Team,

I have the metadta and i want to create a custom object using the XML 
How to implement it  . Could you please help me here .
Can i load the data from Developer console 


<?xml version="1.0" encoding="UTF-8"?>
<CustomObject xmlns="http://soap.sforce.com/2006/04/metadata">
<actionOverrides>
<actionName>Accept</actionName>
<type>Default</type>
</actionOverrides>
<actionOverrides>
<actionName>CancelEdit</actionName>
<type>Default</type>
</actionOverrides>
<actionOverrides>
<actionName>Clone</actionName>
<type>Default</type>
</actionOverrides>
<actionOverrides>
<actionName>Delete</actionName>
<type>Default</type>
</actionOverrides>
<actionOverrides>
<actionName>Edit</actionName>
<type>Default</type>
</actionOverrides>
<actionOverrides>
<actionName>List</actionName>
<type>Default</type>
</actionOverrides>
<actionOverrides>
<actionName>New</actionName>
<type>Default</type>
</actionOverrides>
<actionOverrides>
<actionName>SaveEdit</actionName>
<type>Default</type>
</actionOverrides>
<actionOverrides>
<actionName>Tab</actionName>
<type>Default</type>
</actionOverrides>
<actionOverrides>
<actionName>View</actionName>
<type>Default</type>
</actionOverrides>
<allowInChatterGroups>true</allowInChatterGroups>
<compactLayoutAssignment>SYSTEM</compactLayoutAssignment>
<deploymentStatus>Deployed</deploymentStatus>
<enableActivities>false</enableActivities>
<enableBulkApi>true</enableBulkApi>
<enableFeeds>false</enableFeeds>
<enableHistory>true</enableHistory>
<enableReports>true</enableReports>
<enableSearch>false</enableSearch>
<enableSharing>true</enableSharing>
<enableStreamingApi>true</enableStreamingApi>
<label>Work Part</label>
<nameField>
<displayFormat>PART-{0000}</displayFormat>
<label>Name</label>
<trackHistory>false</trackHistory>
<type>AutoNumber</type>
</nameField>
<pluralLabel>Work Parts</pluralLabel>
<searchLayouts/>
<sharingModel>ControlledByParent</sharingModel>
<visibility>Public</visibility>
</CustomObject>


Thanks,
Vijay.
ANUTEJANUTEJ (Salesforce Developers) 
Hi Vijay,

If you are migrating from one salesforce org to another salesforce org, and you are trying to deploy custom objects then I would suggest you to check this link:

>> https://salesforce.stackexchange.com/questions/131809/using-ant-migration-tool-no-custom-object-deployed

Let me know if it helps you and close your query by marking it as solved so that it can help others in the future.  

Thanks.
Vijay ummedaVijay ummeda
Hi AnuTej,

IF i have a metadata file and i want to load in the same org instead of migrating how can i do it ?

Thanks,
Vijay.
Vijay ummedaVijay ummeda
Hi AnuTej,

https://developer.salesforce.com/docs/atlas.en-us.api_meta.meta/api_meta/manifest_samples.htm

I have  checked the below link but i couldn't see any option from developer console is it possible only if i use VS code and the XML data in the package.XML file

Thanks,
Vijay.