4,039 reputation
2923
bio website
location Norway
age 27
visits member for 4 years, 7 months
seen 12 hours ago

Nov
25
comment Uploading files >40MB using SP.requestexecutor to sharepoint online hangs the browser
Since you have provider-hosted app, can't you just do this with C# and CSOM? Also, since you have 365 have you looked at StartUpload?
Nov
25
comment Provider Hosted application often stops debugging
Just to be sure: You have set Ping Enabled to False in IIS for the respective application pool(s)?
Nov
25
comment REST API filter by month
Are you asking how to filter items by a given month, or how to get items and display only month?
Nov
24
comment Get last created item from SharePoint List using REST
Ok @NadeemYousuf. I just did a test on SharePoint Online and there ID worked, while Id did not. Could be difference between 2010 and 2013? Beside that in my test $orderBy combined with $top also worked.
Nov
22
comment Creating folder is not possible in app web in sharepoint?
What does makeProperUrl look like?
Nov
22
comment get list of all users SharePoint using REST API
You ask how to get users, yet your example code is about getting items. I'm not sure if I should show you how to get user in a field (with $expand) or how to get a user by id (from /Users). Sorry, but your question makes no sense to me
Nov
21
comment Get last created item from SharePoint List using REST
@AmalHashim I think you need ID instead of Id. @james-grizzle why would Created be better than ID, wouldn't it be the same? And Modified would not be the last created item.
Nov
21
comment How to properly cache, validate, refresh Access Tokens?
Beside ajax the default app setup should redirect user to SharePoint to refresh the token (and then be automatically redirected back to your app) - so can't you do the same? If your Web API controller fails to auth with ClientContext simply tell your client script to refresh the browser, which again will trigger the whole refresh-token-cycles
Nov
21
comment How to properly cache, validate, refresh Access Tokens?
Sorry I misunderstood the question. The link I provided is just about storing the URL
Nov
21
comment How to properly cache, validate, refresh Access Tokens?
Did you see Navigating to new page loses querystring?
Nov
21
comment PowerShell script doesn't appear to work as scheduled task
Did you try to check off the script to run with highest privileges?
Nov
20
comment How to hide ribbon for everyone only on 1 custom NewForm.aspx?
Or just add a cewp or script editor web part and do the same thing
Nov
20
comment Installation of Sharepoint 2010 on VM
Are you sure the accounts must be AD accounts? For 2013 at least I usually use the Azure VS VM with the built in install script for SP2013, let me have a stand-alone dev environment up and running in 10 minutes fresh installed without AD
Nov
19
comment Unable to get property 'get_current' of undefined or null reference
I cringe every time I see new SP.ClientContext.get_current(), although it does actually work, and is probably not a problem here. Also, there are several places where new operator should be used in combination with "SharePoint JavaScript objects"
Nov
19
comment POST Request through WebProxy with JSON data
Holy, it did? That is cool, I honestly didn't expect it to. Let me post an answer for you go give me internet points
Nov
19
comment POST Request through WebProxy with JSON data
Depends on how you structured it, this is how it should look like: gist.github.com/eirikb/bf25e0d1094d9ff52326
Nov
19
comment POST Request through WebProxy with JSON data
Have you tried adding Content-Type with application/json to the result-array of headers (same as with Accept)?
Nov
18
comment help in adding a http link in script editor - cant get it to work
If viewurl is a string, and not the name of a variable your code will not work. The end result would be something like calling showSPDialog(http://google.com), which will not work very well. It will work if you have something like var viewurl = '"http://google.com"';. But wouldn't it be better to use some sort of templating?
Nov
17
comment ItemUpdated not changing field values
1) fired after the item is updated, EventFiringEnabled is not set to false. 2) Same item is updated. 3) Triggers an updated event; go to 1)...
Nov
17
comment ItemUpdated not changing field values
A sidenote: Wouldn't this cause an endless loop?