Back
You can try using Metadata API. Below is an example to do that.
<CustomField> <fullName>Address__c</fullName> <externalId>false</externalId> <formula>BillingStreet & BR() & BillingCity & BR() & BillingPostalCode & BR() & BillingCountry & BR() & Street2__c & BR() & Street3__c</formula> <formulaTreatBlanksAs>BlankAsZero</formulaTreatBlanksAs> <label>Address</label> <required>false</required> <trackHistory>false</trackHistory> <type>Text</type> <unique>false</unique></CustomField>
<CustomField>
<fullName>Address__c</fullName>
<externalId>false</externalId>
<formula>BillingStreet & BR() & BillingCity & BR() & BillingPostalCode & BR() & BillingCountry & BR() & Street2__c & BR() & Street3__c</formula>
<formulaTreatBlanksAs>BlankAsZero</formulaTreatBlanksAs>
<label>Address</label>
<required>false</required>
<trackHistory>false</trackHistory>
<type>Text</type>
<unique>false</unique>
</CustomField>
I hope this will work.
Want to know more about Salesforce? Watch this video on Salesforce Developer Training for Beginners:
Want to become a Salesforce expert? join Salesforce certification now!!
31k questions
32.8k answers
501 comments
693 users