SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I wrote a script with ECMAScript to create a new calendar view with a click of the button by using:


However, I'm wondering if it is possible to create the view based on an existing view so that all the view fields information can be carried over (scope, filters...)

Thanks in advance!

share|improve this question

You can use the SP.View.viewQuery property to fetch the query of the existing view.

And assign that query to the new view by using the SP.ViewCreationInformation.query property.


share|improve this answer

You should be able to copy most of the properties from an existing view, but it's going to be a three step process:

  1. Get the exiting View
  2. Fill out properties available in the ViewCreationInformation and create the view
  3. Update the propertites of the new View which wasn't available in ViewCreationInformation and update the View
share|improve this answer
... and two calls to the server. – Mike H May 24 '12 at 2:45

Your Answer


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.