Reputation
4,566
Top tag
Next privilege 5,000 Rep.
Approve tag wiki edits
Badges
2 10 25
Newest
 Yearling
Impact
~242k people reached

Apr
6
comment JSOM Remote Access Office 365 Site
I don't think it is possible because of Same Origin Policy, not even through app policy, you need a proxy. But I just have to ask, how did you get access to SP in your JavaScript if you have a plain APT.NET site?
Apr
1
comment How to foreach through a list and get distinct values from specific columns C#?
You get an IEnumerable back. You could try ToList(), even ...Distinct().ToList().ForEach(Console.WriteLine)
Mar
27
comment TypeError: SP.ClientContext is undefined
ok great. Please note that you pass myFunction as reference in your executeFunc example, which is not the same as you did with ExecuteOrDelayUntilScriptLoaded
Mar
27
comment TypeError: SP.ClientContext is undefined
Try removing parantheses from myFunction(), because now you are passing the result of that function as the first argument to ExecuteOrDelayUntilScriptLoaded, which is undefined - instead pass the function reference
Mar
27
comment TypeError: SP.ClientContext is undefined
Your updated code does not reflect my comment (missing 'sp.js)
Mar
27
comment TypeError: SP.ClientContext is undefined
Try to surround with ExecuteOrDelayUntilScriptLoaded(function() { ... }, 'sp.js');
Mar
12
comment Override SharePoint div class Style with CSS
By "compliant with all browsers" are you referring to <= IE6?
Mar
12
comment How do I use getbytitle with special characters?
The peculiarity is actually mentioned here One of these rules is that single quotes within string literals are represented as two consecutive single quotes.
Mar
12
comment How do I use getbytitle with special characters?
I should however note that there is a similar question here, with a comment pointing to the odata docs, alas it turns out as 404, but is called AbstractTypeSystem. I would also note that I got a successful try quite early, as this approach is not uncommon practice in programming
Mar
12
comment How do I use getbytitle with special characters?
@Michael, sorry but I don't know. I used what I like to call the "hammering technique", where I rigorously pound on something until it works, a favorable approach in my world of SharePoint.
Mar
10
comment Rest API authentication
This is quite nice. Does it only work with Azure AD? What about "plain" 365, and on-premise?
Mar
10
comment Programatically get all SharePoint items in our SharePoint 2010 site's libraries and lists
@JohnCasablanca You can get the parent through $_.ParentList.ParentWeb, another options is to define variables for each loop, e.g., $_.AllWebs | { $web = $_; $web.Lists | { $list = $_; $list.Items... For an URL to the item you need to build this yourself
Mar
7
comment Creating client side solutions
+1. But I'd like to note that in regard of portability there can be quite some differences between the REST API between on-premise/365 and even App/non-app!
Mar
6
comment Programatically get all SharePoint items in our SharePoint 2010 site's libraries and lists
A note to the edit ( @nadeem-yosuf ): You don't need to pass in the site url, hence why I left it out
Mar
6
comment Rest API authentication
None of the APIs will let you do CORS AFAIK, which makes me think of using a proxy. Why can't you just use the token you get from TokenHelper in a provider-hosted app and then just route all REST requests through your provider-hosted app? I would imagine you could just pass requests
Mar
6
comment Rest API authentication
I'm not convinced you can't use something like provider-hosted app. However if you want to hack around you could use a proxy.
Mar
6
comment Change selected items order and merge using Javascript
We probably should start a chat right away, I'm afraid your question is not concrete enough. Anyway, could you provide a gist/pastebin of data before transformation, and an example of data as you want it to be converted into - in JSON format?
Mar
6
comment How to get the ID of a list item with a given GUID in Sharepoint online with REST api?
Have you tried casting? E.g., guid'2779cf8051-381f-4834-93dc-ece6345dde33'
Mar
5
comment Copy a Site Template to another SPWeb
Note that this will most likely clear away the existing web templates. To fix this initially re-add the existing templates from $destWeb before adding $template ($destWeb.GetAvailableWebTemplates(1031) | % { $colletion.Add($_) })
Mar
4
comment Change selected items order and merge using Javascript
Are you using CAML? If so you can perhaps both sort and group, although if you are manually processing data why not just do order as well? So much lodash fun