question

MohammadBahsoun-2952 avatar image
0 Votes"
MohammadBahsoun-2952 asked AllenXu-MSFT edited

SharePoint Online - Coding language

Dears,

Please advise what is the programing language Microsoft used in SharePoint online.

I created a function that creates multiple subsites (Using for loop) and on each subsite, I need to create multiple document libraries (in the same loop), I used already CSOM but sometimes the sites or documents libraries not created or errors appears.

Thanks in advance.

Best Regards,
Mohammad



office-sharepoint-online
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

AllenXu-MSFT avatar image
0 Votes"
AllenXu-MSFT answered AllenXu-MSFT edited

@MohammadBahsoun-2952,

Microsoft have introduced the SharePoint Add-In model (https://msdn.microsoft.com/en-us/library/office/fp179930.aspx). In the Add-In model there are two main types of custom application you can build.

First, there are "SharePoint hosted add-ins". These are self contained bundles of SharePoint functionality. They can contain SharePoint resources such as content types, page layouts, master pages, CSS, JavaScript files, pages and web parts. Custom application functionality is done through HTML 5, basically you write JavaScript that runs on your pages or web parts. Your JavaScript can talk to SharePoint through the JavaScript Object Model (or JSOM for short), or through the REST web services.

Second, if you really need server side code, you can use "Provider hosted add-ins". With these you deploy your custom server side functionality somewhere else. This could be an Azure web site or an application on an on-premise web server. It runs independently of SharePoint, and can talk to it through either the Client Side Object Model (CSOM) or again the REST web services. This custom functionality is then presented through SharePoint as either app pages or web parts. This is how you would use C# for example, but it's important to note it could work with any server side technologies such as Java, PHP, Node etc.

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

AllenXu-MSFT avatar image
0 Votes"
AllenXu-MSFT answered

Hi @MohammadBahsoun-2952 ,

You can use any language supported by the .NET Framework, Visual Basic and C# included. The official Microsoft SharePoint SDK Samples is only in C#. You really want to use C# if you have to develop for SharePoint, especially if you're just starting.


If an Answer is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

MohammadBahsoun-2952 avatar image
0 Votes"
MohammadBahsoun-2952 answered MohammadBahsoun-2952 commented

Hello Allenxu,

Thanks for your reply.

Regarding the C#, yeah you can use it when you are developing an application for SharePoint on-prem but in my case, I'm developing for SharePoint Online and you can't use c# code.

Regards,

· 2
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

@MohammadBahsoun-2952,

Indeed, we can also use C# via CSOM to develop for SharePoint Online. You can create a console application and use C# to have a try. Take a reference to this article: What is csom in SharePoint Online

0 Votes 0 ·

But in this case, you can't deploy the app in SharePoint online since I'm developing an app for a client and he needs it in office 365 and not run it via Console Application.

Thanks & Regards.

0 Votes 0 ·