salesforce_manage_field
Create or modify custom fields on Salesforce objects, including types like Text, Picklist, Lookup, and Master-Detail, with configurable properties such as Required, Unique, and External ID. Manage metadata changes efficiently with proper permissions.
Instructions
Create new custom fields or modify existing fields on any Salesforce object:
Field Types: Text, Number, Date, Lookup, Master-Detail, Picklist etc.
Properties: Required, Unique, External ID, Length, Scale etc.
Relationships: Create lookups and master-detail relationships Examples: Add Rating__c picklist to Account, Create Account lookup on Custom Object Note: Changes affect metadata and require proper permissions
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| deleteConstraint | No | Delete constraint for Lookup fields | |
| description | No | Description of the field | |
| externalId | No | Whether the field is an external ID | |
| fieldName | Yes | API name for the field (without __c suffix) | |
| label | No | Label for the field | |
| length | No | Length for text fields | |
| objectName | Yes | API name of the object to add/modify the field | |
| operation | Yes | Whether to create new field or update existing | |
| picklistValues | No | Values for Picklist/MultiselectPicklist fields | |
| precision | No | Precision for numeric fields | |
| referenceTo | No | API name of the object to reference (for Lookup/MasterDetail) | |
| relationshipLabel | No | Label for the relationship (for Lookup/MasterDetail) | |
| relationshipName | No | API name for the relationship (for Lookup/MasterDetail) | |
| required | No | Whether the field is required | |
| scale | No | Scale for numeric fields | |
| type | No | Field type (required for create) | |
| unique | No | Whether the field value must be unique |