2

I have created three lightning web components and four apex class using Visual Studio code. Now Client wants to create package.xml with all components, it should also include LWC as well. I tried by using workbench by adding Force.com Migration Tool Package Creator Extension to chrome browser and below is the package.xml file created:

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>

<Package xmlns="http://soap.sforce.com/2006/04/metadata">

<types>

<members>salesOrders</members>

<members>orderList</members>

<members>paginatorBottom</members>

<name>LightningComponentBundle</name>

</types>

<version>34.0</version>

</Package>

It's not included LWC.So what is the best way to achieve this Please suggest? What step I should follow to create the package.xml file.

1 Answer 1

1

The culprit here is the API version.

<version>45.0</version>

use 45 or 46 you should be able to retrieve it.

6
  • I am not able to edit xml file in workbench.
    – jsmith
    Jul 4, 2019 at 11:59
  • update the file in the text editor and again upload it Jul 4, 2019 at 12:02
  • When i edit xml in text editor and load XML in workbench its remain same.Is there any solution for it?
    – jsmith
    Jul 4, 2019 at 12:34
  • create a new copy of it. Jul 4, 2019 at 13:08
  • I did it but it not work.
    – jsmith
    Jul 4, 2019 at 13:11

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .