12.07.2015 Views

Database.com Metadata API Developer's Guide - Salesforce.com

Database.com Metadata API Developer's Guide - Salesforce.com

Database.com Metadata API Developer's Guide - Salesforce.com

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

CRUD-Based Callsrename<strong>Metadata</strong>()}if (r.isSuccess()) {System.out.println("Renamed <strong>com</strong>ponent: " + r.getName());}else {System.out.println("Errors were encountered while renaming " + r.getName());for(Error e : r.getErrors()) {System.out.println("Error message: " + e.getMessage());System.out.println("Status code: " + e.getStatusCode());}}}} catch (ConnectionException ce) {ce.printStackTrace();} catch (InterruptedException ie) {ie.printStackTrace();}ArgumentsNamemetadataTypeoldFullNamenewFullNameTypestringstringstringDescriptionThe metadata type of the <strong>com</strong>ponents to rename.The current <strong>com</strong>ponent full name.The new <strong>com</strong>ponent full name.ResponseSaveResult54

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!