4 respostas
Hi Debra, Follow the below steps:
- "Create a Project with Manifest" in VS code (folder to store the files)
- Authorise an Org (connect the org where you already have LWC components)
- Go to Manifest Folder --> Right click --> Refresh component from Source using Manifest
This will refresh the VS Code and get all the existing LWC Components from the connected Org.
If you have components in Multiple org, "Authorise an org" multiple times and refresh it.At last, you can set Default org to deploy all the changes into one org instead of placing them in multiple org. Hope this helps. Thanks,GauravSkype: gaurav62990I didnt see exactly this "Refresh component from Source using Manifest". Instead inside manifest I opened package.xml and then right clicked and then clicked on "Retrieve Source in Manifest from Org". Ensure "LightningComponentBundle" is present in your org to retireve LWC components and "AuraDefinitionBundle" is present in package.xml to retrieve Aura components. Debra, Gaurav,
This is a useful discussion! I followed the steps above and managed to retrieve data from my org but I can't figure out how to edit (and find in the first place) the Article Content component that displays Salesforce Articles (part of the Knowledge product) on Communities/Sites. I need access to the HTML and JavaScript, I think, to tweak the behaviour of images displayed as part of the 'Article Content' component. I am not finding the component in question under the LWC folder, nor anywhere else (components, pages folders etc). Is this possible at all?