Reputation
23,429
Top tag
Next privilege 25,000 Rep.
Access to site analytics
Badges
1 31 65
Newest
 Necromancer
Impact
~1.6m people reached

1d
comment Powershell/task scheduler OR timer job(Farm solution) OR workflow/retention policy . when i want to implement a background jobs
Yes, the remote timer job is just an app and you need a way to schedule and run it, as it can't run within SharePoint directly like SP timer jobs. You can write PowerShell that can do stuff that you can do in .NET, but complex data structures are harder to write, the syntax is a bit more verbose, and there's the PowerShell Execution Policy which you can't guarantee you have control over on some environments (depending on the company's IT governance).
1d
comment Powershell/task scheduler OR timer job(Farm solution) OR workflow/retention policy . when i want to implement a background jobs
You're right, admin tasks that you normally do in PowerShell are probably left in there and scheduled if needed. Non-admin tasks that get and update list items are indeed normally done in Timer Jobs in SharePoint, but one was to build something new, they'd want to support future versions of the product, so will use remote APIs if possible. A console app that uses PnP timer job framework will support SP2013 and beyond, needs no WSP installation, and can run anywhere.
Jan
13
comment Method of comparing and finding out the difference between two wsp files
No metadata about TFS is saved in the WSP when it is compiled. Those details aren't even stored on the file system, all of that is only held on the TFS server.
Dec
30
comment REST API compare current user if exist in a custom list
Technically inaccurate, GET has no specified limit, if a server cant handle the length of a request it must respond with 414 URI Too Long
Dec
16
comment Save my credentials in Office 365
Got https://*.sharepoint.com saved to your Trusted Sites?
Dec
15
comment Save my credentials in Office 365
Which browser ?
Nov
16
comment Sharepoint 2013 - show edit to admin only
It definitely works, I use it to conditionally load a CSS file when I want to hide ribbon options (not 100% security guaranteed, but at least it hides the option, and targeting specific ribbon actions are easy in CSS). Hiding the whole ribbon I haven't tried though.
Nov
16
comment Why getElementsByTagName() return an empty collection?
Hang on, OP has mentioned a "modal list new form", this is rendered within in IFrame if I remember right - can someone check that getElementsBy... work from a parent frame into a child iframe?
Nov
16
comment How to stop Sharepoint from auto formatting my code?
All of this is grand but OP stated he was editing code via "Edit Source" - this is an option in the Ribbon to edit the HTML field source of a page.
Nov
16
comment Why getElementsByTagName() return an empty collection?
Use document.getElementsByClassName if you have added a class for selecting. I doubt the tag names are specific enough for you to be useful without further filtering.
Nov
16
comment Inserting data to list using rest
Confirmed - this will get you the entity name. It replaces spaces using the normal XML replacement we see in Field names - x0020. OP's entity name will be SP.Data.Teams_x0020_ListListItem.
Nov
11
comment Getting all sub-sites using rest
That's because it is an object. To view it in the console use console.log("%O", data.d.results);
Sep
8
comment Invalid SPListItem. The SPListItem provided is not compatible with a Publishing Page
Note for anyone browsing this answer - SPSecurity.RunWithElevatedPrivileges has no effect in a Console App, it merely reverts the impersonating identity to the process identity and only really works within a web application.
Aug
20
comment 'Microsoft.Web' is a 'namespace' but is used like a 'type' in CSOM sharepoint
Copy & Paste the entire contents of your C# file, I reckon there's a namespace you don't need that's confusing it.
Aug
20
comment Can't use SPItemEventProperties ListItem on ItemAdded in Event Receiver
Do this, and get rid of the using statements creating new SPSite and SPWebs - you have an SPWeb instance via properties so there's no need to create a new one.
Jun
30
comment Connect all SSRS Reports in SharePoint library to DataSource using Powershell
This is an amazing Cmdlet. If only I knew about this 2 years ago... :)
Jun
30
comment SharePoint Online Public Website
In short, Microsoft really don't want you customising and branding SharePoint sites to the level that is often required for public web sites, so they'd rather you not use SharePoint for your public facing site (upgrades are guaranteed to break them). You can use anything on the market (probably most would go for WordPress). I'm not real sure why they pointed people to GD or WiX though.
Jun
2
comment sharepoint is slow
Poor SharePoint performance is normally a symptom of an insufficiently specced SQL Server, or poorly configured SQL Server. Turning off services rarely helps, and only does help if memory usage is stressed on the WFE/App servers.
May
29
comment Uncaught Sys.InvalidOperationException: Sys.InvalidOperationException: Object Raphael already exists as a class, enum, or interface
Might be worth asking with the vendor of the custom solution? Doesn't look like anything SharePoint normally throws up.
May
29
comment Uncaught Sys.InvalidOperationException: Sys.InvalidOperationException: Object Raphael already exists as a class, enum, or interface
Is the custom solution loading a control twice on the page at all? Are you able to reproduce on a new site collection?