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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

<strong>Metadata</strong> Types<strong>Metadata</strong> Field Typesweblink.setUrl("http://www.google.<strong>com</strong>");weblink.setAvailability(WebLinkAvailability.online);weblink.setLinkType(WebLinkType.url);weblink.setEncodingKey(Encoding.fromString("UTF-8"));weblink.setOpenType(WebLinkWindowType.newWindow);weblink.setHeight(600);weblink.setWidth(600);weblink.setShowsLocation(false);weblink.setHasScrollbars(true);weblink.setHasToolbar(false);weblink.setHasMenubar(false);weblink.setShowsStatus(false);weblink.setIsResizable(true);weblink.setPosition(WebLinkPosition.none);weblink.setMasterLabel("google");weblink.setDisplayType(WebLinkDisplayType.link);AsyncResult[] asyncResults = metadataConnection.create(new WebLink[]{weblink});// After the create() call <strong>com</strong>pletes, we must poll the results of checkStatus()//}Declarative <strong>Metadata</strong> Sample DefinitionThe following is the definition of a Weblink in a custom object.....googleButtononlinelinkUTF-8falsetruefalse600trueurlgooglenewWindownonefalsefalsefalsehttp://www.google.<strong>com</strong>600....<strong>Metadata</strong> Field TypesThese field types extend the field types described in the SOAP <strong>API</strong> <strong>Developer's</strong> <strong>Guide</strong>.Field TypeCustomFieldObjectsCustom objectCustom fieldWhat the Field ContainsRepresents a custom field.107

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

Saved successfully!

Ooh no, something went wrong!