Tag Info

New answers tagged

1

I agree with Andreas - you don't have to call Update() or SystemUpdate(). We have code in production that changes permissions and doesn't call Upate afterwards. But almost every example on the internet calls Update() after changing the role assignments. Here's one blog post that doesn't call it: ...


0

Please try the below url its useful : http://www.c-sharpcorner.com/UploadFile/sarav82/MOSS11072007065009AM/MOSS.aspx OR http://spupload.codeplex.com/


0

If your calendar has recurring items the query from Karthik Jaganathan's answer works incorrect. The best method is use attribute DateRangesOverlap. oQuery.Query = "<Where><DateRangesOverlap><FieldRef Name='EventDate' /><FieldRef Name='EndDate' /><FieldRef Name='RecurrenceID' /><Value Type='DateTime'><Today ...


1

Use SPUtility.CreateISO8601DateTimeFromSystemDateTime to create relevant DateTime string. DateTime firstDay = new DateTime(DateTime.Now.Year, DateTime.Now.Month, 1); string firstDayValue = SPUtility.CreateISO8601DateTimeFromSystemDateTime(firstDay); string firstDayValueplus1Month = ...


0

You need to call executeQueryAsync again after oList.update in the test function. Move your alert into the success callback of that executeQueryAsync. It works on the second click because the executeQueryAsync in your for loop actually saves the item from the first update since that's already in the batch


1

15 workflows will run at a time and the rest will be queued and will run as soon as the number of running workflows drops below 15. By running workflows I mean workflows that are currently using CPU and memory, not all those that have been started before and are in "In Progress" state because some of them may just be sleeping (for example waiting for task ...


7

If fetching of item["ID"] instead of 'Title' works AND If you are using the SPQuery object. Then, include the columns that you want to fetch in the ViewFields property of SPQuery. This will resolve your issue. Reference: ...



Top 50 recent answers are included