{
"sections": [
"title",
"description",
"fields",
"wsdl_segment",
"declarative_metadata_sample_definition"
],
"title": "WebLink - Metadata API",
"description": "Represents a custom button or link defined in a custom object.",
"fields_columns": [
"type",
"description"
],
"fields": {
"availability": {
"type": "WebLinkAvailability (enumeration of type string)",
"description": "Indicates whether the button or link is only available online ( online, or if it is also available offline ( offline ).",
"required": true
},
"description": {
"type": "string",
"description": "A description of the button or link."
},
"displayType": {
"type": "WebLinkDisplayType (enumeration of type string)",
"description": "Represents how the button or link is rendered. Valid values are: link for a hyperlink button for a button massActionButton for a button attached to a related list"
},
"encodingKey": {
"type": "Encoding",
"description": "The default encoding setting is Unicode: UTF-8. Change it if your template requires data in a different format. This is available if your content source is URL. Valid values include: UTF-8—Unicode (UTF-8) ISO-8859-1—General US & Western Europe (ISO-8859–1, ISO-LATIN-1) Shift_JIS—Japanese (Shift-JIS) ISO-2022-JP—Japanese (JIS) EUC-JP—Japanese (EUC-JP) x-SJIS_0213—Japanese (Shift-JIS_2004) ks_c_5601-1987—Korean (ks_c_5601-1987) Big5—Traditional Chinese (Big5) GB2312—Simplified Chinese (GB2312) Big5-HKSCS—Traditional Chinese Hong Kong (Big5–HKSCS)",
"required": true
},
"fullName": {
"type": "string",
"description": "The name of the custom button or link with white spaces and special characters escaped for validity. The name can only contain characters, letters, and the underscore (_) character. The name must start with a letter, and can’t end with an underscore or contain two consecutive underscore characters. Inherited from the Metadata component, this field isn’t defined in the WSDL for this component. It must be specified when creating, updating, or deleting. See create() to see an example of this field specified for a call."
},
"hasMenubar": {
"type": "boolean",
"description": "If the openType is newWindow, this field indicates whether to show the browser menu bar for the window (true) or not (false). Otherwise, leave this field empty."
},
"hasScrollbars": {
"type": "boolean",
"description": "If the openType is newWindow, this field indicates whether to show the scroll bars for the window (true) or not (false). Otherwise, leave this field empty."
},
"hasToolbar": {
"type": "boolean",
"description": "If the openType is newWindow, this field indicates whether to show the browser toolbar for the window (true) or not (false). Otherwise, leave this field empty."
},
"height": {
"type": "int",
"description": "Height in pixels of the window opened by the custom button or link. Required if the openType is newWindow. Otherwise, leave this field empty."
},
"isResizable": {
"type": "boolean",
"description": "If the openType is newWindow, this field indicates whether to allow resizing of the window (true) or not (false). Otherwise, leave this field empty."
},
"linkType": {
"type": "WebLinkType (enumeration of type string)",
"description": "Represents whether the content of the button or link is specified by a URL, an sControl, a JavaScript code block, or a Visualforce page. url sControl javascript page flow—Reserved for future use.",
"required": true
},
"masterLabel": {
"type": "string",
"description": "Master label for this object. This display value is the internal label that is not translated."
},
"openType": {
"type": "WebLinkWindowType (enumeration of type string)",
"description": "When the button or link is clicked, specifies the window style that will be used to display the content. Valid values: newWindow sidebar noSidebar replace onClickJavaScript",
"required": true
},
"page": {
"type": "string",
"description": "If the value of linkType is page, this field represents the Visualforce page. Otherwise, leave this field empty."
},
"position": {
"type": "WebLinkPosition (enumeration of type string)",
"description": "If the value of OpenType is newWindow, this field indicates how the new window should be displayed. Otherwise, don’t specify a value. Valid values are: fullScreen none topLeft"
},
"protected": {
"type": "boolean",
"description": "Indicates whether this subcomponent is protected (true) or not (false). Protected subcomponents can’t be linked to or referenced by components or subcomponents created in the installing organization.",
"required": true
},
"requireRowSelection": {
"type": "boolean",
"description": "If the displayType is massActionButton, this field indicates whether to require individual row selection to execute the action for this button (true) or not (false). Otherwise, leave this field empty."
},
"scontrol": {
"type": "string",
"description": "If the value of linkType is sControl, this field represents the name of the sControl. Otherwise, leave this field empty."
},
"showsLocation": {
"type": "boolean",
"description": "If the openType is newWindow, this field indicates whether to show the browser location bar for the window (true) or not (false). Otherwise, leave this field empty."
},
"showsStatus": {
"type": "boolean",
"description": "If the openType is newWindow, this field indicates whether to show the browser status bar for the window. Otherwise, leave this field empty."
},
"url": {
"type": "string",
"description": "If the value of linkType is url, this is the URL value. If the value of linkType is javascript, this is the JavaScript content. If the value is neither of these options, leave this field empty. Content must be escaped in a manner consistent with XML parsing rules."
},
"width": {
"type": "int",
"description": "Width in pixels of the window opened by the button or link. Required if the openType is newWindow. Otherwise, leave this field empty."
}
},
"wsdl_segment": "```xml\n\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n\n \n \n \n \n \n \n \n \n \n \n \n \n\n\n \n \n \n\n\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n\n \n \n \n \n\n\n \n \n \n \n \n\n\n \n \n \n \n \n\n\n \n \n \n \n \n \n \n\n\n \n \n \n \n \n \n \n\n```",
"declarative_metadata_sample_definition": [
{
"description": "The following is the definition of a WebLink in a custom object. For related samples, see Declarative Metadata Sample Definition and Declarative Metadata Sample Definition.",
"code": "\n\n....\n \n googleButton\n online\n link\n UTF-8\n false\n true\n false\n 600\n true\n url\n google\n newWindow\n none\n false\n false\n false\n http://www.google.com\n 600\n \n....\n"
}
]
}