SP.CamlQuery.viewXml property (sp.js)

Gets or sets value that specifies the XML schema that defines the list view.

Applies to: apps for SharePoint | SharePoint Foundation 2013 | SharePoint Server 2013

var value = SP.CamlQuery.get_viewXml ()
var value = SP.CamlQuery.set_viewXml ()

Return value

Type: String


It must be empty or an XML fragment that conforms to the ViewDefinition type.