Adds one or more new metadata components to your organization’s data. This call can be used to create any of the objects that extend Metadata. For more details, see Metadata Components and Types.
AsyncResult[] = metadatabinding.create(Metadata[] metadata);
Required fields are determined by the metadata components being created. For more information about specific component types, see Metadata Components and Types.
You must supply values that are valid for the field’s data type, such as integers (not alphabetic characters) for integer fields. In your client application, follow the data formatting rules specified for your programming language and development tool (your development tool will handle the appropriate mapping of data types in SOAP messages).
When storing values in string fields, the API trims any leading and trailing whitespace. For example, if the value of a label field is entered as "MyObject ", the value is stored in the database as "MyObject".
Use the following process to create metadata components:
See Step 4: Walk Through the Sample Code for sample Java code using the create() call.
| Name | Type | Description |
|---|---|---|
| metadata | Metadata[] |
Array of one or more metadata components. You must submit arrays of only one type of component. For example, you could submit an array of 10 custom objects or 10 profiles, but not a mix of both types. |