Hot answers tagged

2

Document sets are just "fanzy" folders, so you have to use scope RecursiveAll. query.ViewXml = "<View Scope=\"RecursiveAll\" /> "; Or simply use the CreateAllItemsQuery that sets the same caml markup: CamlQuery query = CamlQuery.CreateAllItemsQuery();


2

Here are the steps you should execute Get the XML for webpart Load Limited Webpart Manager object Add web part. You can find details on https://msdn.microsoft.com/en-us/library/office/hh185010(v=office.14).aspx#sectionSection1 Add an existing WebPart Using the Sharepoint client object Model


1

Images, Site Collection Images This system library was created by the Publishing feature to store images that are used on pages in this site.” (not in SPListTemplateType) Also: Asset Library in 2010 just using a foreach loop to iterate through the SPWeb.Lists collection and then check each list's BaseTemplate value to get all the picture and ...


1

If you use REST to query the library, you'll notice that the template type ID is 851, which was introduced in SharePoint 2010. You'll see the details in the result of REST query. http://<<server>>/_api/web/Lists/getByTitle('LibraryTitle') Also here's a table showing you the details: ...


1

Here you go: (int)list.BaseTemplate == 109 | // Picture Library (int)list.BaseTemplate == 851 // Asset Library Note: The BaseTemplate property is of type SPListTemplateType which is an enum containing the template ID's of a number of the OOTB list definitions. The Asset Library however, is not included in the enum.


1

At first glance (and its late saturday afternoon here, and the sun is out and its above 20 celcius for the first time, and I have had some beer) You are running into JavaScrip scoping issues: var passedData = { dfd: d, idx: i }; is the line that worries me, (it is almost a philosophical question... but that must be the beer) where does i come from? You ...


1

Like Amal Hashin said, you've opened a <FieldRef>, but you should close it like that : <FieldRef Name='Mise à jour parc' /> <Value Type='Text'>Non</Value> Also I saw a mistake in your code. You use collListItemToBeUpdatedReventeas variable to print the result of the query. The problem is that you use that variable several times in ...


1

Your query is wrong. Try below query instead camlQuery.set_viewXml("<View> <Query> <OrderBy> <FieldRef Name='Mise à jour parc'> </FieldRef> </OrderBy> </Query> </View> ");



Only top voted, non community-wiki answers of a minimum length are eligible