Posts

Showing posts with the label Retrieve Source in Manifest from Org

Alternative to SFDX: Retrieve Source in Manifest from Org

Image
In majority cases, while creating project in VS Code, one follows the 3 steps; create project using manifest, authorize org and retrieve source in manifest from org. As manifest is the file, that might change from org to org, its a general practice to create a manifest or package.xml file with commonly retrieved metadata items like apex classes, lightning web components and so on. However, as the package.xml file becomes bigger in size (not specifically to certain number of lines) the SFDX command, retrieve source in manifest from org might or might not work (without any error). If the command is explicitly ran from terminal, it shows internal error with error code. Common workarounds like, restarting VS Code or updating Salesforce CLI would not help in this situation. This becomes a bottle neck.  Fortunately there are ways to retrieve the metadata, lets see the options we have. Option 1: Reduce the number of lines in package.xml This is