Tag Info

Hot answers tagged

7

100 items is the default limit Please use $limit in your request: for example : /_api/web/lists/GetByTitle('ListName')/items?$limit=1000 EDITED : In the following sample the rowlimit is set to 100 so that any list with more then 100 items will be queried multiple times until all items are retrieved. private async Task<List<ListItem>> ...


6

This is a demonstration how you can copy files, folders and Document Set programmatically. If you want to move just files (documents) inside same SharePoint site and keep all versions of that file, an example is shown in the method MoveFileWithVersions. If you have folders that contain multiple files and you want to move one folder with all files that are ...


5

One can use the ListItemCollectionPosition class to implement paging list item retrieval according to the position of items relative to their collection. Use the RowLimit element to specify the number of items to return per page. The following example loops through all the items in a SharePoint list, using the ListItemCollectionPosition property of the ...


4

Seems to me you have not a complete understanding of the logic you are trying to write? Let me give you an example of how your code works now: You have items 1 2 3 4 5 6 7 8 9 10 You retrieve them backwards (say you set RowLimit=5 for now) so you will get: 10 9 8 7 6 Then you save the 6 in a variable When the user click on "Show more" or whatever, ...


4

Try adding the query string parameter to the URL: IsDlg=1 Can't test right now but that works for dialogs. Maybe it works for the page viewer too. I can try it out when I get back to my desk. EDIT Thanks to Akhoy for pointing out an issue with IsDlg when using the PageViewer web part. David Lozzi's blog describes the issue but basically, use IsDlg if ...


2

You can accomplish this with a calculated field and a view. Create a calculated field named Month and use the Date In or Date Out field (which ever you want to use to count occurrences). The calculation for this column will be =TEXT([DateField], "mm"). This will return the month as a numerical value. Now that you have this, create a view or modify an ...


2

When a document library is defined as "Site Assets Library" in library Advanced Settings, then SharePoint will upload items into subfolders in the designated Site Assets library.


2

Synonyms in Managed Metadata are completely unrelated to synonyms in a thesaurus for Search. You could write a PowerShell script that read the MMS terms and created a formatted thesaurus then periodically Imported/Updated the search thesaurus. In one step traverse your term set and write a thesaurus file in the format: Key,Synonym,Language ...


2

You can use this URL : http://rootsite/_api/Web/webs?$expand=Lists/RootFolder&$select=Lists/RootFolder/ServerRelativeURL. This will return the subwebs along with the lists property expanded for each subweb. The Lists property will return all the lists and libraries associated with the subsite.


1

Try this one: /_api/Web/Lists?$select=Title,RootFolder/ServerRelativeUrl&$expand=RootFolder Then iterate all results and select list.RootFolder.ServerRelativeUrl.


1

Usually for resources in the Style Library, they must be published before normal or anonymous users can see them. Through your browser, on your windows authentication site, go to Site Contents and then your Style Library. Find the items that are not appearing for anonymous users, check them out, and when you check them back in make sure you choose to publish ...


1

Try adding the type="text/javascript" in the <script> tag references, like this: <script type="text/javascript" src="http://yoursite/sites/yourlibrary/jquery.min.js"></script> <script type="text/javascript" src="http://yoursite/sites/yourlibrary/StickyHeaders_v2.9BETA.js"></script> Also see these posts: sharepoint 2013 / ...


1

In 2013 its best to apply CSR with a JSLink, but this method has some drawbacks like having to set the JSLink for every View, and not being able to (easily) have multiple Views on one page. In SP2010 I used these steps to Sum a Calculated Column (which can not be done with a View Total) It uses Javascript in a Calculated Column to do the math while the ...


1

You can try that method: public SPFieldNumber EnsureIntegerField(SPList list, string internalName, string displayName, string description, bool required, bool includeInDefaultView, int? defaultValue) { SPFieldNumber field = null; // We first ensure the column is not already there if (!list.Fields.ContainsField(internalName)) ...


1

Make sure to add the name of an existing application pool, the one from the TechNet article is just an example that should be replace with an existing one. To get a list of the application pools in your environment you can use Get-SPServiceApplicationPool detailed here: https://technet.microsoft.com/en-us/library/ff607544.aspx


1

If you want to see all changes based on a column: Create a view to show only those items that have that column "Eng" through a filter Set up an alert to use that view Whenever someone changes an item in that view, you should get an alert If you want to get an alert if a specific column changes TO a value, you may have to set up a workflow or event ...


1

The Id comes from the User Information List in the Site Collection. You can ask the users id from this list also via rest. Example here: (User properties) https://msdn.microsoft.com/en-us/library/office/dn531432.aspx You need to call ensureUser, which adds it to the Site Collection User list if the user is not already existing. Create new SharePoint user ...


1

You can try using Sticky Headers for SharePoint 2013. I would experiment with using it on just one page, list, or library to start with, and then if you like it, you can decide whether or not not to use it for your whole site. Below is how to do that. Download Script Files To use the Sticky Headers, first you need to download the StickyHeaders_v2.9BETA.js ...


1

_layouts was for 2010. So it's perfectly fine to replace it with _layouts/15 because of a new virtual folder called 15 in the layouts folder in 2013. Some googling got me this : http://yalla.itgroove.net/2013/02/07/sharepoint-2013-_layouts15-vs-_layouts-folder-differences/


1

I'm assuming you're using OneDrive? If so, then see page 138 from the book "SharePoint 2013 How-To" - it talks about how the blue icon in the shape of two round arrows pointing at each other means that the documents are still synchronizing.


1

Look at the Web Application Service Application Connections. The sites under that web app will use the Search Service App that is selected in the Service Application Connections.


1

I don't believe there is any way out of the box to achieve this. I would handle this with custom JavaScript. Use the SharePoint navigation settings to setup the links as you want them using headings to group items. Then load your custom JS to manipulate which navigation children are currently visible and which are hidden. I have not done this exact thing ...


1

Using out of the box workflow actions you can't do it because of security limitations. As solution I would like to suggest to have a look at a Plumsail Workflow Actions Pack. It is extended set of workflow actions for SharePoint Designer which also contains a set of workflow actions for permission management. I'm one of developers of the product and I'm ...


1

You can write a simple test in VS to get the content of a web page. However many of those tests only gather the HTML response and not all of the files which come along. We started first with those simple tests. A small exe triggered by VisualCron and then we analysed the resultes. As said, the results tended to be too optimistic. Finally we ended up using ...



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