+ Start a Discussion
Brian NørremarkBrian Nørremark 

Create a custom button with Metadata API?

Hi all,
I created a custom button in Classic by hand:
User-added image
It shows in Metadata API just fine.
User-added image
Replicating the same thing with Metadata API (with help from IntelliJ + Illuminated Cloud) with:
<?xml version="1.0" encoding="UTF-8"?>
<WebLink xmlns="http://soap.sforce.com/2006/04/metadata">
Then the deployment goes fine, but the button is "nowhere" to be seen.
However, with a bit of SOQL, it turns out that it is there, but on the wrong type.

User-added imageAny ideas on how to fix this?