3,667 reputation
2822
bio website
location Norway
age 27
visits member for 4 years, 6 months
seen 4 hours ago

May
6
revised Accessing files in SharePoint AutoHosted App 2013
added 861 characters in body
May
6
comment powershell script works but not showing list data(scheduled task)
Did you try to run task with "Highest privileges", and set it to "run whether user is logged in or not", and did you add the SharePoint snapping, and did you add Start-Transcript to see what the actual error is?
May
6
comment Is it possible to make SharePoint lists accessible cross domain using REST API?
Well you could use that approach on any server (CORS/JSONP) to just get the token, then you should be able to auth with plain JavaScript and can use CORS/JSONP/Proxy directly against SharePoint. (Must enable CORS in IIS as you probably know, although I'm not sure how smart it is in regard of security). But I agree, I think Web API + CSOM + SharePointContextProvider is the most awesome approach, when you have a C# backend :P
May
6
answered Hiding controls from ListView quick edit mode
May
6
comment Is it possible to make SharePoint lists accessible cross domain using REST API?
@anbuj did you try using REST from C#? Here is an example of how you can authenticate: dotnet-rocks.com/2013/10/02/…
May
5
comment Is it possible to make SharePoint lists accessible cross domain using REST API?
Hi @André, what is your specific approach? I.e., what do you have and what are you trying to do?
May
2
comment Client side date validation in SharePoint List form using jquery
@RobWindsor, the first hit on that query is already pointing to this question. So your comment causes and endless loop, human stack overflow :D ⁽ᶦ ᵈᵒ ʰᵃᵛᵉ ᵃ ˢᵉʳᶦᵒᵘˢ ᵖᵒᶦᶰᵗ ᵗʰᵒᵘᵍʰ⁾
May
2
comment InfoPath using ListData.svc/somelist?$filter xxx return 500 Internal Server error
Have you checked ULS?
May
2
comment which master page used in current sub site?
Did you run SharePoint Management Shell or run the Add-PSSnapin "Microsoft.SharePoint.PowerShell" cmdlet?
May
1
comment Migrating specific documents with sharepoint online 365
It could be this problem you are facing. But first, have you tried adding the site to trusted sites?
May
1
comment Why is my web part showing “Add Document?” (Sharepoint 2013)
I would guess one is for 2010, no idea why. Try exporting the Web Part and see if the assembly is set to version 14 instead of 15
May
1
comment Migrating specific documents with sharepoint online 365
@user25532 have you tried doing it manually? In explorer (window+e) click "map network drive" and in "folder" just paste in the full URL of your lib
May
1
comment delete all files in sub folder CSOM
Nice, but just wondering, if you were deploying an autohosted app wouldn't the initialization be different from your second example?
May
1
comment Refresh page or call JS function after New Item dialog closes
That's great @Colbs. I'll let Andrey update his answer accordingly and he will have my vote :)
May
1
revised delete all files in sub folder CSOM
Updated according to Robert
May
1
comment delete all files in sub folder CSOM
This is a better answer than mine, but I'll leave mine to show alternatives. Also, can you really initialize ClientContext like that for 365? (I will up when you altered according to Robert :) )
May
1
comment Refresh page or call JS function after New Item dialog closes
Just a note, OP could probably just keep using the same function and the second argument for the redirect. e.g., OpenPopUpPage('...',function(saved){window.location='...'})
May
1
comment 2013: How can I use a form in my AngularJS code in the Default.aspx page?
index.html will work just fine
May
1
answered delete all files in sub folder CSOM
Apr
30
comment CSOM Item Level Security “Cannot add a role assignment with empty role definition binding collection.”
Note that this will not remove the existing permissions. If you want to do that you could do something like item => item.RoleAssignments when loading items and then calling item.RoleAssignments.ToList().ForEach(ra => ra.DeleteObject()); where you call BreakRoleInheritance