sfdx-package-generator icon indicating copy to clipboard operation
sfdx-package-generator copied to clipboard

Layout metadata not retrieving

Open jameskbw opened this issue 2 years ago • 3 comments

I am using the extension to pull down selective components as an admin. When I use the package generator and check layout, I see all my layouts load to the right. When I click update package and look at my package xml, I see the following added: * Layout

When I retrieve source in manifest, it does not retrieve any page layouts. The output says there is nothing to retrieve.

I then used the org browser and downloaded the page layouts and they all download fine.
2023-03-14 11_02_25-Window

jameskbw avatar Mar 14 '23 15:03 jameskbw

Deselect one layout and add it back manually after manifest creation. Wildcard only retrieves unmanaged layouts.

Also, you'll need to manually add the sobject namespace also to the layout name, see #19.

jh480 avatar Apr 03 '23 20:04 jh480

Deselect one layout and add it back manually after manifest creation. Wildcard only retrieves unmanaged layouts.

Also, you'll need to manually add the sobject namespace also to the layout name, see #19.

I don't understand your reply. When I use the package generator, it adds the wildcard for layout and nothing else. When I try to retrieve source, no page layouts are found. What are you saying I need to add back manually?

jameskbw avatar May 08 '23 11:05 jameskbw

If you remove one layout from the selection, then the generated xml will list the rest explicitely (but without the needed namespace prefix after the hyphen).

jh480 avatar May 08 '23 18:05 jh480