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?
(namespace)sObject-(namespace)Made Layout
is what I would expect to work and you say it does. So why not use it?(namespace)sObject-(namespace)Made Layout
but I need to call one made by a user. The call does not work in the contexts I gave above. As I had stated. the(namespace)sObject-(namespace)Made Layout
does work as expected. It's trying to call a user made layout inside of a package created object.(namespace)field__c
would be the packaged vs justfield__c
being user created on a package object is correct. Sadly it does not though.