web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Small and medium business | Business Central, N...
Suggested Answer

Sharepoint Connector (Create meta data in sharepoint) and Sync Job from BC to Sharepoint

(5) ShareShare
ReportReport
Posted on by 16
codeunit 9100 "SharePoint Client"
{
    Access = Public;
 
    var
        SharePointClientImpl: Codeunit "SharePoint Client Impl.";

In the SharePoint Connector for Business Central, is there a way to programmatically create SharePoint metadata columns (i.e., add custom columns to a document library) directly from AL code? Currently, the built-in codeunit only supports creating folders and uploading files, but not adding or managing metadata fields. Is there any supported approach or workaround to create and sync metadata columns between SharePoint and BC?

any other way?

What is the recommended approach to set up a bidirectional sync job where:

  • Data from BC is pushed to SharePoint (e.g., document metadata or structured data), and
  • Updates or files from SharePoint can be pulled back into BC automatically or on a schedule?

 

I have the same question (0)
  • Suggested answer
    Jainam M. Kothari Profile Picture
    15,887 Super User 2026 Season 1 on at
  • Gerardo Rentería García Profile Picture
    26,098 Most Valuable Professional on at

    Hi, good day
    I hope this can help you, and give you some hints.

    Dynamics 365 Business Central Blog Series: Integrate Business Central with SharePoint | Dynamics 365 Lab

    Best Regards
    Gerardo

  • MU-02050924-0 Profile Picture
    16 on at
    Hi Guys,


    Let me rephrase my question. I want to create metadata in sharepoint. Means, I want to create custom columns to a document library, directly from AL code. PFA Attached - I want to create REF column through BC code.
  • Suggested answer
    YUN ZHU Profile Picture
    100,001 Super User 2026 Season 1 on at
    Hi, Sorry, I haven't tested this in detail, but from what I understand it's possible.
    You can do it through the graph api below.
     
    I recommend testing it through Postman first.
     
    Thanks
    ZHU
  • MU-02050924-0 Profile Picture
    16 on at

    Hi Yun Zhu,

    I've tried implementing the solution, but unfortunately, I haven't been able to achieve the desired result. I was wondering if you could kindly take a look whenever you have a moment—your guidance would be incredibly helpful and greatly appreciated by myself and many in the Business Central AL developer community.

    One of my connections also shared the following Microsoft API documentation, which might be useful in this context:

    Working with folders and files with REST

    Thanks in advance for your time and support!

  • Gerardo Rentería García Profile Picture
    26,098 Most Valuable Professional on at

    Hi, good day
    I hope this can help you, and give you some hints.

    Adding MetaData to SharePoint Documents with the SharePoint Connector

     

    Best Regards
    Gerardo

  • Suggested answer
    YUN ZHU Profile Picture
    100,001 Super User 2026 Season 1 on at
    Sorry I haven't used the built-in code because of some limitations.
    Some of my tests are done directly using Http methods, I think you can try it.
    Dynamics 365 Business Central Blog Series: Integrate Business Central with SharePoint
     
    Thanks.
    ZHU

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the March Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Small and medium business | Business Central, NAV, RMS

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 1,875 Super User 2026 Season 1

#2
YUN ZHU Profile Picture

YUN ZHU 926 Super User 2026 Season 1

#3
Teagen Boll Profile Picture

Teagen Boll 642 Super User 2026 Season 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans