Solved

How to code SharePoint 2013 online

Posted on 2016-10-20
4
34 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
  • 2
4 Comments
 
LVL 31

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 31

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 14

Expert Comment

by:SneekCo
ID: 41856950
Great info Jamie, thanks...
0

Featured Post

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

Lync meeting or Lync conferencing is what many organizations would like to deploy to allow them save money. But companies are now giving up for various reasons, one of which is that they cannot join external meetings (non-federated company meetings)…
This collection of functions covers all the normal rounding methods of just about any numeric value.
The view will learn how to download and install SIMTOOLS and FORMLIST into Excel, how to use SIMTOOLS to generate a Monte Carlo simulation of 30 sales calls, and how to calculate the conditional probability based on the results of the Monte Carlo …
The viewer will learn how to use the =DISCRINV command to create a discrete random variable, use this command to model a set of probabilities and outcomes in a Monte Carlo simulation, and learn how to find the standard deviation of a set of probabil…

707 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now