function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
csbaacsbaa 

custom Button in package.xml manifest file

Hello Helper

 

I want to export   from an org a package  containing  custom objects,  Custom fields , classes,  custom buttons......

 

I created a package.xml  file where I included  the Metadata  types  I want to export

 

I can not  specify  Custom button Metadata  type

Looking into the salesforce docs it seems to me that is is  considered as weblink

 

I tried  something like  below

 

.....

<types>
<members>Account.CustomButton_1</members>
<members>Account.CustomButton_1</members>
<name>webLinks</name>
</types>

 

 

 

but it does not work

 

any suggestion?

 

 

Thanks in advance

Csaba

 

 

 

 

Best Answer chosen by csbaa
David CheungDavid Cheung
@csaba, meta data name for custom button is WebLink - in the singular form, you had it as WebLinks.
@Admin why was @Vinita_SFDC chosen as the best answer?

All Answers

Vinita_SFDCVinita_SFDC

Hello Csbaa,

 

We can not deploy custom button with metadata API as there is no metedata type available for custom button. Please refer below link for the list of metadata types available in salesforce:

 

http://www.salesforce.com/us/developer/docs/api_meta/Content/meta_types_list.htm

 

If you wish to have such functionality in near future then i would suggest you to vote idea, at below provided link, on ideaexchange portal:

 

https://success.salesforce.com/ideaView?id=08730000000BpG6AAK

David CheungDavid Cheung
@csaba, meta data name for custom button is WebLink - in the singular form, you had it as WebLinks.
@Admin why was @Vinita_SFDC chosen as the best answer?
This was selected as the best answer
csbaacsbaa
Thanks David

Indeed this  is the nest answer

 
RDSRDS
Has this been delivered? I cannot find metadata type for this and the idea sais its already implemented. Regards
David Jordan 20David Jordan 20
WebLink as a type is correct. You need to fully qualify the name of your link or button
A package.xml like this works just fine
   <types>
        <members>Lead.Convert_Lead</members>
        <name>WebLink</name>
    </types>
Ajeet Singh 229Ajeet Singh 229
Thanks David , this helped me as well
John ImesJohn Imes
Manifestor ManManifestor Man
Metadate button method for this type 
A package.xml like this works just fine
   <types>
        <members>Lead.Convert_Lead</members>
        <name>WebLink</name>
    </types>
Pdf to word (https://manifestationmagicalexanderwilson.com/yantra-manifestation-system-reviews/" style="color:blue; text-decoration:underline)