I was wondering if we can check if a field is already added to layout, add it otherwise. As I used the metadata API for layouts, noticed that if we include a single component in Metadata.DeployContainer (which is existing in current layout), whole deployment fails.
It's great to,
- Have ability Check the component/field existence before adding to container
- Pass a parameter to ignore failed ones
- Have reasons to know why it fails in the callback response
Is it possible using the Apex Metadata API?