TransWikia.com

Page layout assignments with XML metadata API

Salesforce Asked by Baxter on January 3, 2021

How do I define page layout assignments for different record types via metadata XML files?

One Answer

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>

Correct answer by Mike Chale on January 3, 2021

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP