Create Salesforce Custom Object
sf_create_custom_objectCreates a new Salesforce custom object (entity/table) using the Metadata API. Define API name, labels, and optional settings like search, reporting, and field history.
Instructions
Creates a new Salesforce Custom Object using the Metadata API. The object name must end with '__c'. Use this when a user asks to create a new object, entity, or table in Salesforce.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| label | Yes | Singular label shown in the UI, e.g. 'Invoice' | |
| fullName | Yes | API name of the custom object, e.g. 'Invoice__c' | |
| description | No | Optional description for the object | |
| pluralLabel | Yes | Plural label, e.g. 'Invoices' | |
| enableSearch | No | Enable search on this object | |
| sharingModel | No | OWD sharing model for the object | ReadWrite |
| enableHistory | No | Enable field history tracking | |
| enableReports | No | Make the object available for reports | |
| nameFieldType | No | Type of Name field: 'Text' (free-form) or 'AutoNumber' (auto-increment) | Text |
| nameFieldLabel | No | Label for the standard Name field, e.g. 'Invoice Name' | Name |
| autoNumberFormat | No | Format for AutoNumber name field, e.g. 'INV-{0000}'. Required when nameFieldType is AutoNumber. | |
| deploymentStatus | No | Deployment status of the object | Deployed |
| enableActivities | No | Allow activities (tasks/events) on this object |