Partager via


Provision an External List using feature (BCS)

Eric shared the xml schema to provision an external list using features. I believe everyone will find it useful so sharing it.

           <?xml version="1.0" encoding="utf-8"?>

            <Elements xmlns="https://schemas.microsoft.com/sharepoint/">

              <ListInstance Title="title of list"

                            OnQuickLaunch="TRUE"

                            TemplateType="104"

                            FeatureId="SharePointFeatureId"

                            Url="lists/Url"

                            Description="Description">

                <DataSource>

                  <Property Name="LobSystemInstance" Value="LobSystemInstance" />

                  <Property Name="EntityNamespace" Value="EntityNamespace" />

                  <Property Name="Entity" Value="EntityName" />

                  <Property Name="SpecificFinder" Value="SpecificFinder" />

                  <Property Name="Finder" Value="Finder" />

                </DataSource>

              </ListInstance>

            </Elements>