Take the 2-minute tour ×
Salesforce Stack Exchange is a question and answer site for Salesforce administrators, implementation experts, developers and anybody in-between. It's 100% free, no registration required.

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

1 Answer 1

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:

<webLinks>
        <fullName>Billing</fullName>
        <availability>online</availability>
        <displayType>link</displayType>
        <encodingKey>UTF-8</encodingKey>
        <hasMenubar>true</hasMenubar>
        <hasScrollbars>true</hasScrollbars>
        <hasToolbar>true</hasToolbar>
        <height>600</height>
        <isResizable>true</isResizable>
        <linkType>url</linkType>
        <masterLabel>Billing</masterLabel>
        <openType>newWindow</openType>
        <position>none</position>
        <protected>false</protected>
        <showsLocation>true</showsLocation>
        <showsStatus>true</showsStatus>
        <url>http://www.genwatt.com/genwatt/billing.htm?actname={!Account_Name}</url>
    </webLinks>
share|improve this answer
    
could you be a bit more specific? maybe show a quick xml example –  NSjonas Aug 15 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 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 at 23:58

Your Answer

 
discard

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.