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
Pasan   EeriyagamaPasan Eeriyagama 

How to update Layout input field label text if exists, and add if it doesn't exist under a section?

I'm looking for update a Layout input field label (customized) and add the input to Layout under a particular section if it does not exist.

I could write the code for adding a input field + section, if they don't exist. But if they exist, whole adding fails.Can anyone please help with Apex code utilizing Apex metadata API (summer 17). Thanks.