Hot answers tagged

2

You can perform this activity using CAML query with the below logic Get the list items in descending order Set row limit as one and retrive the record CAML Query: <View><Query><OrderBy><FieldRef Name='ID' Ascending='False'/></OrderBy> <Where> <Eq> <FieldRef Name='Title' /> <Value ...


2

You can use a couple of approaches: Save last item id in SPList properties and then retrieve the value next time you're adding an item: //set - after setting all field values and updating the item itemAdd.Update(); wayList.RootFolder.SetProperty("LastItemID", itemAdd.ID); //you need AddProperty if it doesn't exist //get //then subtract 1 if needed var ...


2

try this one: SPSite site = SPContext.Current.Site; SPWeb web = SPContext.Current.Web; SPList list = web.Lists[“Shared Documents”]; SPQuery query = new SPQuery(); //Condition to check the item type is folder or not query.Query = “<Where><Eq><FieldRef Name=’FSObjType’/><Value ...


2

On your SPQuery object, you can set the scope in the ViewAttributes property, as documented here: https://msdn.microsoft.com/en-us/library/office/microsoft.sharepoint.spquery.viewattributes.aspx ... SPQuery spQuery_temp = new SPQuery(); spQuery_temp.Query = "<OrderBy><FieldRef Name='Modified' Ascending='False' /></OrderBy>"; ...


2

Query should be like camlQuery.ViewXml = "<View><Query><Where><Eq><FieldRef Name='Title' /><Value Type='Text'>Test1</Value></Eq></Where></Query></View>";


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();


1

You should refer this link once. This post contains the code for authenticating with your SharePoint Online and upload a file into the given library. class Program { static void Main(string[] args) { using (ClientContext clientContext = new ClientContext("https://xxxx.sharepoint.com/sites/SiteName")) { ...


1

Yes, it is possible to create custom HTML, Javascript and CSS in your SharePoint site. A tool called SharePoint Designer is also available that shall help you to perform this. It is suggested that rather than this IDE it would better if you would use SharePoint Designer as it is designed for SharePoint specifically. You would be able to download this ...


1

I don't think there is any official documentation about that. After decompiling DLLs, this is what I found : Microsoft.SharePoint.Navigation.SPNavigationNode.Properties are coming from SPRequest.GetNavigationNodeProperties The latter gets those properties from an internal class, which seems to point to OWSSRV.dll that I cannot decompile. See also : ...



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