Cath-Strategic-Tech / Refugees-Support

Managed package built on top of Salesforce.org's Program Management Module (PMM) to support the needs of Canadian organizations sponsoring international refugees as part of the IRCC's Sponsorship Agreement Holder program.
BSD 3-Clause "New" or "Revised" License
1 stars 0 forks source link

Enable 'Middle Name' setting in scratch orgs #50

Open mattmartin26 opened 2 years ago

mattmartin26 commented 2 years ago

https://developer.salesforce.com/docs/atlas.en-us.api_meta.meta/api_meta/meta_namesettings.htm

The following is an example of a NameSettings component.

<?xml version="1.0" encoding="UTF-8"?>
<NameSettings xmlns="http://soap.sforce.com/2006/04/metadata">
    <enableInformalName>false</enableInformalName>
    <enableMiddleName>true</enableMiddleName>
    <enableNameSuffix>false</enableNameSuffix>
</NameSettings>

The following is an example package.xml manifest that references the NameSettings definitions.

<?xml version="1.0" encoding="UTF-8"?>
<Package xmlns="http://soap.sforce.com/2006/04/metadata">
    <types>
        <members>Name</members>
        <name>Settings</name>
    </types>
    <version>31.0</version>
</Package>