2

I have a changeset and when I go to View/Add Dependencies, I see this message above a list of page layouts I may add to the changeset:

"A dependency is created when one component needs another component, permission, or preference to be valid. The components in this list have dependencies. Although you don't have to add dependent components to a change set, you should make sure that they exist in the organizations where the change set will be deployed."

None of these page layouts currently exist in my target org for the new custom objects. Do I have to include these page layouts in order for the changeset to deploy? These custom objects only need to be accessible via the API, not via the Salesforce UI.

EDIT: We deployed a changeset with new custom objects to our target org, without any Page Layouts included in the change-set, but when I look at the new custom objects in the target org, they seem to have new Page Layouts assigned to them. Do new custom objects that are deployed without Page Layouts have default page layouts auto-created for them?

  • How many page layouts did you have in test and how many were auto-created in Production? It makes since that Salesforce would auto-create 1 standard layout, but if that is not the case I will need to do some more digging. – Blair Kristin Feb 1 '16 at 16:56
  • There was a page layout in test, that was not deployed, I can still see it was not part of the deployed changeset. Yet after deployment, the newly created custom object has one page layout – Brad Thomas Feb 1 '16 at 17:02
2

Yes page layouts must be added just like custom fields must be added. The change set can still deploy without them, but the page layouts will be missing. EDIT: Salesforce will always create a standard page layout if there is a custom object is deployed without a page layout. Each object must have at least one page layout. If you try to delete the only page layout on an object, it will not let you. An error message that says "Error: You must have at least one page layout" will appear. That is why Salesforce auto-created one.

  • Thank you. Please see the edit I added to my question above – Brad Thomas Feb 1 '16 at 16:50

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.