Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

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?

share|improve this question
add comment

1 Answer

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.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.