Solved

How to code SharePoint 2013 online

Posted on 2016-10-20
4
111 Views
Last Modified: 2016-10-24
I have been reading all over the internet trying to find out how to code SharePoint 2013 online.  I wanted to be able to make Visual Web Parts but after going down that road, I now read that Microsoft shut off Sandboxed Solutions ?  Can anyone give me a clear explanation of how to code C# in SharePoint 2013 online ?

With C# I can do anything, connect to azure databases, sharepoint lists, take over the DOM and make my own pages etc etc etc.  Is there still a way to do all the things I could do with C#.  If  C# is indeed no longer allowed, what do you use ?
0
Comment
Question by:Demosthenes
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 Comments
 
LVL 32

Accepted Solution

by:
Jamie McAllister MVP earned 500 total points
ID: 41852181
So, you will never write and deploy compiled C# code to SharePoint Online. Ever!

SharePoint Online is a massive solution where many customers are sharing SharePoint tenants on the same virtual servers as other customers. Full trust or even sandboxed code would jeopordize the stability of that.

So, our custom solutions will always be written in client side code (e.g. javascript) or perhaps compiled code on our own or an Azure server.

The App Model is the first attempt at this (I don't particularly like or recommend it, but that's another story).

Much more promising is the new SharePoint Framework, where webparts can be written as client side code. Very slick, very clever.

Get familiar with the Office Patterns and Practices site. Many working code samples, and showing exactly how it should be done.

http://dev.office.com/pnp
1
 

Author Comment

by:Demosthenes
ID: 41852282
So, you will never write and deploy compiled C# code to SharePoint Online. Ever!

Wow.  Ok, finally a clear answer !  Thank you much.
1
 
LVL 32

Expert Comment

by:Jamie McAllister MVP
ID: 41852295
To be fair I mostly work with SharePoint on-premises, but even there I avoid deploying code to SharePoint itself whenever possible. (As soon as I saw what Microsoft were aiming at with SharePoint 2013 and the App Model I saw where future investment from MS was going to go)

I write solutions in C# and even powershell. These tend to use the Client Object Model to call into SharePoint to retrieve or manipulate data. They're deployed to other servers in my org, and often use least privileged service accounts to operate. (Quite often batch processing due to nature of the business).

I also write javascript that I deploy to SharePoint (store in libraries and on pages). This javascript often also uses the Client Object Model to retrieve or manipulate data.

Beyond this I also use K2 Blackpearl, which gives me powerful electronic form and workflow capabilities I couldn't get from native SharePoint. (Deployed to a K2 server, once again not touching the SharePoint servers themselves).

I partially documented my ethos in this blog post in 2013; http://the-north.com/sharepoint/post/Alternatives-to-SharePoint-Timer-Jobs
0
 
LVL 19

Expert Comment

by:Walter Curtis
ID: 41856950
Great info Jamie, thanks...
0

Featured Post

NEW Veeam Agent for Microsoft Windows

Backup and recover physical and cloud-based servers and workstations, as well as endpoint devices that belong to remote users. Avoid downtime and data loss quickly and easily for Windows-based physical or public cloud-based workloads!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

As with any other System Center product, the installation for the Authoring Tool can be quite a pain sometimes. This article serves to help you avoid making these mistakes and hopefully save you a ton of time on troubleshooting :)  Step 1: Make sur…
The System Center Operations Manager 2012, known as SCOM, is a part of the Microsoft system center product that provides the user with infrastructure monitoring and application performance monitoring. SCOM monitors:   Windows or UNIX/LinuxNetwo…
The viewer will learn how to simulate a series of coin tosses with the rand() function and learn how to make these “tosses” depend on a predetermined probability. Flipping Coins in Excel: Enter =RAND() into cell A2: Recalculate the random variable…
The viewer will learn how to use a discrete random variable to simulate the return on an investment over a period of years, create a Monte Carlo simulation using the discrete random variable, and create a graph to represent the possible returns over…
Suggested Courses

623 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question