function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
JP Nikko AM SystemsJP Nikko AM Systems 

Migrate custom object page layout and record type

Hi,

Is there a way to deploy custom object's page layout and record types?
We're using a lot of page layouts and need to set the picklist values per record type.

I'm also using Eclipse but I don't seem to see that in the .object file.

Thanks.

 
Rowallim TechnologyRowallim Technology
Hi Jp Nikko AM Systems
Yes Page Layouts can be included in Change Sets. If you are not seeing your changes in the target environment there are a few things you can check.
 1) If there are new fields, you have to include the fields in the Change Set to push the fields onto the object. Page Layouts are only the UI of how      a record looks. You have to push the object / field changes also. For example you can create a field an only use it on a report or list view and        never on a Page Layout. So make sure to include the Field in your change set.
 2) If these are new fields, do the profiles have Field Level Security applied to them? If a Profile does not have FLS visibility to a field, even if the      field is on the Page Layout it will not display. You need to include the Profiles in your Change Set so that FLS will be deployed with the new          fields in a Change Set.
 3) Are Record Types associated with the Page Layouts and Profiles? If you do not include the Profile in your Change Set any setting tightly              coupled to the Profile (FLS, Page Layout Assignment) will not push to the target environment.
There could be other things but those are usually the basic ones most folks find.

Hope it will help you.
If you think your question is answered mark it as best answer.
Thanks