Share Your Experience With Others

Assigning Compact Layouts If You Don’t Have Record Types

Sometimes we don’t have any record types in our object but still we need to assign the compact layout. Don’t worry it’s easy to deploy layout assignment.

Just retrieve the metadata of the custom object and try to find this tag.

<compactLayoutAssignment>SYSTEM</compactLayoutAssignment>

Replace it with the API name of your compact layout and deploy.

For Example :

<compactLayoutAssignment>Your_Compact_Layout_API_Name</compactLayoutAssignment>

I hope it helped you!

Leave a comment