Reputation
4,736
Top tag
Next privilege 5,000 Rep.
Approve tag wiki edits
Badges
2 11 25
Impact
~268k people reached

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
Mar
4
comment How to get appWebUrl and hostUrl when getQueryStringParameter fails?
Or localstorage
Mar
4
comment Could not load file or assembly '$SharePoint.Project.AssemblyFullName$' or one of its dependencies
Did you add .asmx to the list of files Visual Studio should magically replace such $-variables in? (Found this on Google. See Picture).
Mar
2
comment sharepoint workflow rest api add role assignment exception
Guess you would get another exception, but did you use POSTverb?
Feb
27
comment SignalR on SharePoint Farm Solution
Did you have to add all the assemblies to your package?
Feb
27
comment Jquery accessing an element in Approval Task Form
innerText is a property on HTMLNodes, not a function on a jQuery object, perhaps you are looking for text()
Feb
27
comment Ignore/Exclude file when using Export/Import-SPWeb
Have you tried unpacking the cab-file, remove the file and then packing it back up? - not pretty though
Feb
27
comment Error: “Cannot index into null array”
Are you sure $web is properly set? As in what happens if you run $web.Lists or even $web.Title?
Feb
26
comment Jquery accessing an element in Approval Task Form
You get [object Object] because you are looking at the toString of the jQuery object. If you use console.log, or a breakpoint, you will see the actual array, then you can even right click and reveal the element (if found) in the elements tab, jay
Feb
26
comment Get Columns via REST
Wouldn't it be better to get the fields from a specific Content Type (/Lists.../ContentTypes/.../Fields)? That is after all what the user would see in a form
Feb
25
comment SignalR on SharePoint Farm Solution
You could instead show the app inside a dialog (iframe to the app). Not sure what the best approach is, but I did a simple test by calling OpenPopUpPage with the iframe src for an app part, and it worked