REST calls between applicationsdo you mind sharing the solution? If it does not alter IIS (web.config or additional module or similar) I would love to see it.

Apr30

comment

REST calls between applicationsYou would be breaking SOP, but you can get through that with a proxy (or hacking the web.config on the target, then use CORS), but it happens that SharePoint apps have this built in, called web proxy - so my question is; do you have apps installed?

REST endpoint working in SharePoint online and not in on premiseYes 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

Apr9

comment

REST endpoint working in SharePoint online and not in on premiseI'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

Create Choice Column via JSOMWhat's with the "," Name="ApprovalStatus" />' at the end of your field xml? I would say that is your problem right there

Apr7

comment

JSOM Remote Access Office 365 SiteJust 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

Apr6

comment

JSOM Remote Access Office 365 SiteI 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?

TypeError: SP.ClientContext is undefinedTry 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

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