You need to sign in to do that
Don't have an account?
DivyanshD Singh
Add two columns in a section of Layout by Metadata Apex
Here is my code for a separate section and a column.I need to 2 two columns as i have many field to show on that section of layout.
Can anyone help how to divide a section in two columns by apex.I am using Metadata API currently.
Can anyone help how to divide a section in two columns by apex.I am using Metadata API currently.
if(layout.layoutSections==null) layout.layoutSections = new List<MetadataService.LayoutSection>(); MetadataService.LayoutSection newLayoutSection = new MetadataService.LayoutSection(); newLayoutSection.customLabel = true; newLayoutSection.detailHeading = true; newLayoutSection.editHeading = true; newLayoutSection.label = 'Keyword fields'; newLayoutSection.style = 'TwoColumnsLeftToRight';}
Please try this one.
Select the best answer if it is working for you.
Please select the best answer if it is working for you.
Thanks,
Annu Choudhary