Salesforce Stack Exchange is a question and answer site for Salesforce administrators, implementation experts, developers and anybody in-between. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Not seeing anything related to these in the Metadata types documenation.

Can anyone give me an example of how these can be referenced?

share|improve this question
up vote 3 down vote accepted

They are in the objects metadata with the webLinks tag.

Sure in my Account metadata I have the following link:

share|improve this answer
could you be a bit more specific? maybe show a quick xml example – NSjonas Aug 15 '14 at 21:51
Oh I see, they can't be retrieved and deployed independently of custom objects (like you can do with custom fields). Basically its all or nothing when migrating custom objects – NSjonas Aug 15 '14 at 23:45
No, you can specify the Weblink metadata type separately. It will appear in the objects directory under the appropriate object, but that object's XML won't include other properties, like fields or related lists, unless explicitly retrieved. There's a typo in the documentation. Docs say it's WebLink, but it's actually Weblink. – sfdcfox Aug 15 '14 at 23:58

The correct way to reference these in the Ant Migration tool is to create a WebLink metadata type in your package.xml file. The actual detail of the button/link will be stored within the custom object xml file. For example:

<?xml version="1.0" encoding="UTF-8"?>
<Package xmlns="">

Will result with the metadata of the Send_SMS button inside of the Contact metadata file in the objects folder:


The button can then be retrieved and deployed as desired.

<?xml version="1.0" encoding="UTF-8"?>
<CustomObject xmlns="">
        <masterLabel>Send SMS</masterLabel>
        <url>code omitted for brevity</url>
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.