How do I define page layout assignments for different record types via metadata XML files?
Attribution to: Baxter
Possible Suggestion/Solution #1
Going by what the Migration Tool produces, these are stored in the profile definitions. Here's an example from one of my org's profiles:
<?xml version="1.0" encoding="UTF-8"?>
<Profile xmlns="http://soap.sforce.com/2006/04/metadata">
<!-- Field permissions -->
<!-- Layout Assignments
<layoutAssignments>
<layout>Account-Institution</layout>
<recordType>Account.Institution</recordType>
</layoutAssignments>
<!-- object permssions -->
<!-- Record Type visibilities -->
<!-- Tab Visibilities -->
<!-- User license -->
</Profile>
Attribution to: Mike Chale
This content is remixed from stackoverflow or stackexchange. Please visit https://salesforce.stackexchange.com/questions/852