1

I have an External Content Type in my Metadata store and I want to create an external list using that ECT, using Powershell script.

I tried to use $Web.Lists.Add() with SiteTemplate = "External List" but it doesn't seem to work.

There was another example online by creating a ListDatasource object, but that gives me error

"IMethodInstance could not be found using criteria..." and a MetadataObjectNotFoundException

, although the Object is there.

Does anyone have any pointers to get it to work?

1

Following link might help.

Auto Create External Lists for Each ECTs contained within a specific BCS model

Can't use "External List" as SiteTemplate since you have to specify the BDC Model's properties.

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.