0

In the context of my previous questions:

I encountered an error when running this line:

var limitedWebPartManager = oFile.getLimitedWebPartManager(SP.WebParts.PersonalizationScope.shared);

The following error message is shown:

The getLimitedWebPartManager is not a function

Any thoughts on what may be the problem?

1 Answer 1

2

You are mixing SSOM API (server-side object model through C# for example) and JSOM API (JavaScript object model).

Using JavaScript, there is no GetLimitedWebPartManager() function, as the error message clearly states.

According to the documentation, you should use:

var object = new SP.WebParts.LimitedWebPartManager()

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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