MetadataForm.saveBindings (Method)

Save one or more metadata form bindings and associates each with a binding type and target.

Returns:

Void

Arguments:

Name Type Required Description
metadataFormIDList MetadataFormIDList Required A comma-delimited list of metadata form IDs.
bindingType BindingType Required The type of the target binding; example types are 'ExternalURLs', 'ImageFiles', 'PageCategories' 'Subsite', and so on.
bindingTargetID NonNegativeInteger Required The ID of the object to which the metadata form binds. For example, if the 'BindingType' is 'SubsiteID', CommonSpot returns the subsite's ID. If the 'BindingType' is 'ImageFiles' or 'ExternalURLs, CommonSpot ignores this argument.

Context:

License Requirements MetaData
Permission Requirements site:ManageMetadataForms
Deny Context None
Require Context AuthoringEnabled
Author Lock (not required)
Transaction Logging If transaction logging is enabled at the site level, calls to this method will be logged
Customization Customization is not supported for this method.

Error Codes:

Code Error Message
30008 Duplicate IDs in MetadataFormIDList.
30009 Form '$1' is already bound to the specified binding target.
30010 No '$1' exists with ID '$2'.

Notes:

None