SharePoint Online - Coding language

asked 2021-04-19T08:27:18.857+00:00
Mohammad Bahsoun 21 Reputation points

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

SharePoint
SharePoint
A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
5,977 questions
No comments
{count} votes

Accepted answer
  1. answered 2021-04-27T07:45:53.663+00:00
    Allen Xu_MSFT 13,511 Reputation points

    @Mohammad Bahsoun ,

    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.

    No comments

2 additional answers

Sort by: Most helpful
  1. answered 2021-04-20T02:13:58.24+00:00
    Allen Xu_MSFT 13,511 Reputation points

    Hi @Mohammad Bahsoun ,

    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.

    No comments

  2. answered 2021-04-20T06:46:06.923+00:00
    Mohammad Bahsoun 21 Reputation points

    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,