3,652 reputation
2822
bio website
location Norway
age 27
visits member for 4 years, 6 months
seen yesterday

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
Apr
14
comment Use jQuery to make a “column” on the default view?
Ajax does not have to fail, it just means that the DOM is populated after your code tries to work on it. There are several ways to test this, like a simple console.log of your selector result, or a debugger statement for the same purpose, e.g., console.log($('#onetidDoclibViewTbl0 tr:first').length). Other ways is to keep an eye on the network transfers, to see if the content is actually loaded through XHR
Apr
14
comment Get ContentType name with select fields
Yes, I'm starting to think this might be a SharePoint bug actually. ContentType is a bit special, but it should work
Apr
14
comment What is difference between SharePoint REST and ODATA?
I think something as simple as The difference is that OData is a specific protocol; REST is architecture style and design pattern. should suffice
Apr
14
comment What is difference between SharePoint REST and ODATA?
The reason why I posted the link you reference as a comment on the question is because I'm not sure if it is really really SharePoint related, and perhaps a duplicate from SO (if that is even possible to tag here)
Apr
14
comment What is difference between SharePoint REST and ODATA?
stackoverflow.com/q/2458407
Apr
14
comment Get ContentType name with select fields
How incredibly odd. According to msdn you should be able to use the layout you have (.../Items(1)?$select=ContentType/Description&$expand=ContentType/Description). I did a quick test and this works: $select=*&$expand=ContentType (but doesn't help of course), as well does ...Items(1)/ContentType/Description and .../Items(1)/ContentType?$select=Description.
Apr
14
comment How to remove the save and cancel buttons from Custom SharePoint List form(New form)
That does sound like a horrible solution, but yes in theory that should work. Any button of type submit on the page should trigger a postback which should work as expected.