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

Apr
23
comment List and list item permission and security in Sharepoint hosted App
Are you able to remove read permission for the user, but still add items when going through JSOM or REST? If so, and I think that might be the case because of app permissions, you should be able to set item level permission for the user to access their own items on creation. Also, if you are able to retrieve items from a locked down list through the JSOM/REST app proxy you could just give some groups access (i.e., Manager) and forget about item level permission as you can retrieve items through the app
Apr
23
comment List and list item permission and security in Sharepoint hosted App
Can't you just go into list settings > advanced settings > item-level permission and set it to Create items and edit items that were created by the user?
Apr
23
comment SharePoint Hosted App secure content
I imagine this is Open Sans font from Google fonts, and if you open the CSS file there you can see it uses @font-face and src to the link you described
Apr
23
comment Does disposing SPSite dispose the SPWeb automatically?
Just curious, do you know how RootWeb is disposed by SPSite? When decompiling the SharePoint DLL I can't see where it is disposed at all. I think m_openedWebs are all disposed of properly, but RootWeb is not part of these. I know it is disposed, I just can't see where it is done
Apr
22
comment CSOM in FarmSolution
Are you building a separate web application, similar to an autohosted one, that will connect to your SharePoint and you want users to be able to authenticate to SharePoint through this web application?
Apr
22
comment XML code for List view
Might be duplicate of sharepoint.stackexchange.com/questions/62508/… , not flagging since I'm not sure, the methods are the same, but the question is slightly different
Apr
21
comment SharePoint Jquery Condition
Just a note to you and @Aveenav here is an alternative to fetching fields with jQuery that you might find interesting. It is clean and should actually be relatively fast, and best of all it works on internal names instead of title/display name. Works in 2010 and 2013 and default forms (will not work on custom forms)
Apr
21
comment Sharepoint List Issue
Updated the answer to get all distinct values from all items, see $values = ...
Apr
17
comment Get Master Page Gallery via CSOM
And then of course /_api/Web/GetCatalog(116) will work as well
Apr
17
comment Get Master Page Gallery via CSOM
Nice, didn't know about that method (deleted my answer)
Apr
17
comment Saving Changes OPENXML with PowerShell
Perhaps WebDav is doing something funny, have you considered a temp download, edit and then upload with overwrite?
Apr
16
comment SharePoint Rest API internal server error
You could perhaps check ULS. Also, are you querying host web app? And lastly, how does your request look like
Apr
15
comment executeQueryAsync in for loop
@Jarule now I have updated the example so it should fit you 100%. And I used jQuery, so then I guess I should apologize to Aveenav as I thought one didn't need to - of course one should not need to make the example this comlpicated either. Actually, I think I might use underscorejs.org/#intersection instead
Apr
15
comment executeQueryAsync in for loop
@Jarule this is just example code, you would probably move the whole lot into a function and provide the variable groupName as a parameter, as well as the callback. The reason I did not make this function for you is simply because one should refrain from overuse of executeQueryAsync
Apr
15
comment Powershell to get template name site is using
You can use Get-SPWebTeamplate, e.g., Get-SPWebTemplate | ? { $_.Name -like "*SAHREDSERVICEPROJECT*" }
Apr
15
comment Autofill Survey via Query String
That question is not really related to this post, but you google for it (first hit on google). What I would do though to just hack it in, something like this
Apr
14
comment Get webpart's Zone Id via CSOM
Same for REST it seems, ref: /_api/web/getFileByServerRelativeUrl('/SitePages/Home.aspx')/GetLimitedWebPartM‌​anager()/WebParts
Apr
14
comment How to access the content of HTTP page from HTTPS page?
Using the Proxy API is a cool idea. I think you must have an app context though, which I find a bit strange (since it does not have to be app-specific)
Apr
14
comment Get ContentType name with select fields
I tried on 15.0.4569.1000. Neither any of the approaches above, or copied directly from your answer, either with direct opening in browser or with application/json;odata=verbose (as I think is what you are using)
Apr
14
comment Get ContentType name with select fields
This actually works for you? It does not for me, and I have a very strong feeling it does not for OP either