SFDO-Tooling / CumulusCI

Python framework for building portable automation for Salesforce projects
http://cumulusci.readthedocs.io
BSD 3-Clause "New" or "Revised" License
363 stars 242 forks source link

Add ability to define page layout assignments with record types using the update_admin_profile task #3167

Open GeekStewie opened 2 years ago

GeekStewie commented 2 years ago

Feature Type

I'm interested in extensions to existing CumulusCI functionality (e.g., broader applicability of an existing Task or Flow).

Does your feature request solve a current problem?

At the moment we have to define these in an profile xml file within the deployment which has the layout assignments defined with the record types. Like this:

`

Account-npsp__Organization Layout
    <recordType>Account.Organization</recordType> 
</layoutAssignments>`

Describe the solution you'd like

The update_admin_profile task is already doing most of what is needed, so if we could simply add the page layout assignment (if there is one) along with the record type, like so:

update_admin_profile options: include_packaged_objects: true api_names:

Describe alternatives you've considered

Already mentioned in problem description.

Additional context

No response

dcinzona commented 2 years ago

Just so I'm tracking the yaml spacing here and children, this is the expected / hoped-for configuration?

update_admin_profile:
  options:
    include_packaged_objects: true
    api_names:
    - Admin
    - Standard
    record_types:
    - record_type: "Account.Organization"
    - record_type: "Account.HH_Account"
        page_layout: "Account-npsp__Organization Layout"
        default: True
GeekStewie commented 2 years ago

Yes, thanks for cleaning that up