+ Start a Discussion
Ridhima Saxena 20Ridhima Saxena 20 

How to write code for customtab using metadata API??

Hi Developers,
I am new to salesforce. My requirement is to create custom tab using metadata API as i have created custom objects.Please answer as soon as possible but not in xml package
Best Answer chosen by Ridhima Saxena 20
below is a excerpt from below link 
CustomTab expenseTab = new CustomTab();
    expenseTab.setMotif("Custom70: Handsaw");
    AsyncResult[] arsTab =
        metadataConnection.create(new Metadata[] {expenseTab});

You can mould it as per your requirements