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
timgumtotimgumto 

Metadata API creating/updating Custom Tabs

Hi,

 

I've created custom objects in SF and I'd like these to show up as custom tabs in the UI.  I'm trying to implement this with the Metadata API and running into some difficulty.  I'm able to retrieve and deploy via the API, and when I deploy I get a successful response, but I don't see any affect on the tabs.  Here are the xml files I'm deploying (the following two files are :

 

package.xml

 

<?xml version="1.0" encoding="UTF-8"?>
<Package xmlns="http://soap.sforce.com/2006/04/metadata">
<types>
<members>sc_event__c</members>
<name>CustomTab</name>
</types>
<version>25.0</version>
</Package>

 

sc_event__c.xml

 

<?xml version="1.0" encoding="UTF-8"?>
<CustomTab xmlns="http://soap.sforce.com/2006/04/metadata">
<customObject>true</customObject>
<mobileReady>false</mobileReady>
<description>Classy Events</description>
<motif>Custom53: Bell</motif>
</CustomTab>

 

My checkDeployStatus call returns the following:

 

object(stdClass)#79 (3) {
["id"]=>
string(18) "04sE00000014w93IAA"
["runTestResult"]=>
object(stdClass)#88 (3) {
["numFailures"]=>
int(0)
["numTestsRun"]=>
int(0)
["totalTime"]=>
float(0)
}
["success"]=>
bool(true)
}

 

Although I'm getting a successful response I don't see any change within the SF UI.  I tried creating a tab in SF, retrieving the description field, but even that doesn't seem to work.  Ultimately however I'd like to create the entire tab via the Metadata API.  Can anyone tell if I'm missing something obvious here?

 

Thanks,

Tim

Mohan Krishnan 1Mohan Krishnan 1
Any update on this??? Am facing a similiar issue