function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Neha Arora 50Neha Arora 50 

custom object - Creating XML and object file

I have created the XML and object file to create CUSTOM OBJECT and it's fields, deployed through workbench, it was deployed successfully but object was not created in the org and so its fields. I have tried 2 approaches for creating that
1. specified the object and field information in object file and deployed 
2. created the object into the org and only deploy its fields
in both cases zip file was deployed successfully, but in 1st case object was not created and in 2nd case fields were not created
It will be very helpful if someone can specify the sample object file to create custom object and its fields.
I am attaching the screenshot of successful deployment, XML File and object file.

User-added image

User-added image
User-added image
Please let me know if I have made any mistake.

I have also tried to create them through spreadsheet, mapped all the field's data type but neither I could not specify the required attribute for the fields, nor add more than 10 fields on the layout. Also it was failed to store picklist values.
Any help would be appricated.
Thank you.
ShirishaShirisha (Salesforce Developers) 
Hi Neha,

Greetings!

I would suggest you to check the Expand All link to see,if there is any warnings on deploying the file as the warnings will not be shown on the results screen.

Please mark it as best answer if it helps you to fix the issue.

Thank you!

Regards,
Shirisha Pathuri