So, currently having an issue using
Metadata.Operations.retrieve(Metadata.MetadataType.Layout, _layouts_); in a managed codebase. The object in question is managed and the layouts portion is trying to load (namespace)sObject-Custom Made Layout and it is pulling back null. Whereas if I try (namespace)sObject-(namespace)Made Layout the system will retrieve it as expected.
I have tried the callout in the Dev Console multiple times with differing syntax:
(namespace)sObject-Custom Made Layout
sObject-Custom Made Layout
(namespace)sObject-(namespace)Custom Made Layout
Even sObject-(namespace)Custom Made Layout
None of the solutions work. Does anyone know of a fix/workaround/issue with this? Or maybe pointing to a known issue/know why it may not be functioning?