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
Malli GMalli G 

dynamically add a pagelayouts to the profile

hai all 
i need a write dynamically add a pagelayouts to the profile through apex code using vfpage also
how can i do that
Vishal Negandhi 16Vishal Negandhi 16
You can not do this using apex. What you want to achieve is modify metadata from an apex classs, this is not possible IMO.
SujilaSujila
Not sure if this solves your issue but you can dynamically assign Record Type per profile and page layout for this record type will get assigned automatically.