Note: This release is in preview. Features described here don’t become generally available until the latest general availability date that Salesforce announces for this release. Before then, and where features are noted as beta, pilot, or developer preview, we can’t guarantee general availability within any particular time frame or at all. Make your purchase decisions only on the basis of generally available products and features.
Metadata API Example
To create a custom address field on an object, use Metadata API.
This example creates a custom object of type Address on the Account
object.
1<?xml version="1.0" encoding="UTF-8"?>
2<CustomObject xmlns="http://soap.sforce.com/2006/04/metadata">
3 <fields>
4 <fullName>MailingAddress__c</fullName>
5 <externalId>false</externalId>
6 <label>Mailing Address</label>
7 <required>false</required>
8 <type>Address</type>
9 <unique>false</unique>
10 </fields>
11 </CustomObject>