DID THIS ARTICLE SOLVE YOUR ISSUE?
Let us know so we can improve!
Let us know so we can improve!
create()Deprecated. Adds one or more new metadata components to your organization asynchronously. This call is removed as of API version 31.0 and is available in earlier versions only. Use createMetadata() instead.
1AsyncResult[] = metadatabinding.create(Metadata[] metadata);Use this call to add one or more metadata components to your organization.
This call is available in API version 30.0 and earlier only. This call isn’t available in API version 31.0 and later. Use createMetadata() instead.
Your client application must be logged in with the Modify Metadata Through Metadata API Functions or Modify All Data permission.
If a user requires access to metadata but not to data, enable the Modify Metadata Through Metadata API Functions permission. Otherwise, enable the Modify All Data permission.
Note
The metadata components being created determine required fields. 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 for integer fields (not alphabetic characters). In your client application, follow the data formatting rules specified for your programming language and development tool. (Your development tool handles 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 3: Walk Through the Java Sample Code for sample Java code using the create() call.
Type: Metadata[]
Description: Array of one or more metadata components.
Limit: 10.
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.