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
sandipmsandipm 

layout changes during installation?

is it possible to add custom buttons and adding related list to users page layout during installation?

 

or is it possible to automate process of changing layout after installtion, like running some script?

 

regards,

Sandip 

shillyershillyer

"is it possible to add custom buttons and adding related list to users page layout during installation?"

 

This is done automatically for Custom Objects the first time they are installed. As for Standard Objects, you can package a custom page layout, but after the install, the admin will need to assign the new page layout to the profile of users.

 

"or is it possible to automate process of changing layout after installtion, like running some script?"

 

Yes, you could use the Metadata API to automate configure certain customizations. The entire list of components supported via the Metadata API is here.

 

Hope that helps,

Sati