Reputation
4,806
Next privilege 5,000 Rep.
Approve tag wiki edits
Badges
2 11 26
Newest
 Nice Answer
Impact
~282k people reached

Apr
13
awarded  Yearling
Apr
10
comment REST endpoint working in SharePoint online and not in on premise
Yes that is true. One way I can think of to solve your problem is by parallel requests (yes it's not pretty, but at least you can use promises and request simultaneously, you can also get away with only two requests, one for attachments and another for lookups). Another solution is to use JSOM. We wrap our ClientContext in a promise and combine REST with JSOM fluently
Apr
9
comment REST endpoint working in SharePoint online and not in on premise
I'm not 100% sure, but I think the reason it doesn't work on on-premise is because it shouldn't work. 365 is much more forgiving about OData, like you don't need odata=verbose;, probably because of early access and compatibility with already built stuff. The thing is that OData doesn't let you do wildcard select on expanded properties, and for this to work you need that. This is two levels of arrays, think about it as selecting all lists, then all items for all lists, and then selecting properties in the items - not straight forward. As you probably know, if you drop the $select it works
Apr
8
answered Create Choice Column via JSOM
Apr
8
comment Create Choice Column via JSOM
The XML should look like this: <Field Type="Choice" Name="ApprovalStatus" DisplayName="Approval Status"><CHOICES><CHOICE>Pending</CHOICE><CHOICE>Approved</CHOICE><CHOICE>Reject‌​ed</CHOICE></CHOICES></Field>
Apr
8
answered “The collection has not been initialized” when doing ListItemCollection.getEnumerator()
Apr
8
comment Create Choice Column via JSOM
What's with the "," Name="ApprovalStatus" />' at the end of your field xml? I would say that is your problem right there
Apr
7
comment JSOM Remote Access Office 365 Site
Just referring them from the SharePoint site then? I thought at least some of the sp-scripts depended on the dynamic inline scripts on the page
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
2
revised How to rename a folder via csom c# in SharePoint List?
added 347 characters in body
Apr
2
answered How to rename a folder via csom c# in SharePoint List?
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)
Apr
1
answered How to foreach through a list and get distinct values from specific columns C#?
Apr
1
answered How do I get the names of users when retrieving the list of tasks?
Mar
28
answered Passing filter value to REST Query
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
25
answered Previous versions of ListItem with CSOM