I want to retrieve Compact layout to visual studio code from the source org. Currently I'm using following command.

sfdx force:source:retrieve -m "CompactLayout:Lead-English Courses"

But using this command , terminal returns "No Result found".

Can anyone help me to solve this out?


It seems you are using the compact layout label u need to use the API Name and then sfdx force:source:retrieve -m CompactLayout:Account.Mobile_Account_Layout

Note: the format for source: retrieve is objectAPI.compactLayoutAPI

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.