Forums

Forums / Developing Portals / Connect to SharePoint from back-end code (C#)

Connect to SharePoint from back-end code (C#)

2 posts, 1 answered
  1. Missing user
    Missing user avatar
    07 Dec 2021
    Link to this post
    Hello,

    Could you please tell,is it possible to use TPC SharePoint connection in my own custom widget?

    Thank you,
    Dmitriy
  2. Bhargavi Mahal
    Bhargavi Mahal avatar
    14 posts
    Registered:
    16 Dec 2020
    Answered
    07 Dec 2021
    Link to this post
    Hello Dimitry,

    Thank you for posting your query.

    Yes. You can use the public class called 'SharePointConnectionManager' within the namespace 'pavliks.PortalConnector.SharePoint.Connection' in the core project. As there is no documentation on this particular class, you would have to figure out what methods to use. The default constructor with no arguments will use the SharePoint configuration settings from TPC.

    I hope this helps.

    Thank you,

    Regards,
    Bhargavi.
2 posts, 1 answered