Can we store/retrieve data from Share Point list using a WPF C# application?

Lakshmanan Balasubramanian 121 Reputation points
2024-08-09T07:31:07.1166667+00:00

I am working on WPF C# application. Right now, I have the application connected to SQL database to store and retrieve data. However, I am curious to explore the options to replace it with Share Point List. So that, whatever the data I create using my WPF desktop application, I will store the data in the SP list.

If I can store the records in the SP list, I can also create a Power App just to view those created records for the people in the top of organization!

I have not started to code, so unfortunately, I cannot provide code as I am seeking to get opinion if its possible.

Any links, blogs and resource will be helpful! Thanks in Advance!

Developer technologies | Windows Presentation Foundation
Microsoft 365 and Office | SharePoint | Development
Developer technologies | .NET | Other
Developer technologies | C#
{count} votes

2 answers

Sort by: Most helpful
  1. Lakshmanan Balasubramanian 121 Reputation points
    2024-08-12T11:21:47.8+00:00

    Hello All,
    Thanks for all your response. I have managed to crack the solution and now able to connect to the Share Point URL and get the title of the site. I am getting there and my next task is to get the available lists from the site and target one particular list and store/retrieve data.

    The solution I used was from the following blog: https://www.c-sharpcorner.com/article/sharepoint-csom-for-net-standard/

    Obviously, you would get some errors which you have to resolve one by one. There is a very good explanation in the Microsoft and all you have to do is enter the error code and description.

    Some common errors you might expect: Invalid request, Invalid grant, Interaction required

    Please, reply me here if you are stuck with any of the above errors and I can help you to fix!

    Also, the links @Hui Liu-MSFT suggested are bit outdated (depreciated or will end support in few years) as Microsoft has improved their way of connecting to Share Point.

    0 comments No comments

  2. Lakshmanan Balasubramanian 121 Reputation points
    2024-08-12T11:22:35.5566667+00:00

    Hello All, Thanks for all your response. I have managed to crack the solution and now able to connect to the Share Point URL and get the title of the site. I am getting there and my next task is to get the available lists from the site and target one particular list and store/retrieve data.

    The solution I used was from the following blog: https://www.c-sharpcorner.com/article/sharepoint-csom-for-net-standard/

    Obviously, you would get some errors which you have to resolve one by one. There is a very good explanation in the Microsoft and all you have to do is enter the error code and description.

    Some common errors you might expect: Invalid request, Invalid grant, Interaction required

    Please, reply me here if you are stuck with any of the above errors and I can help you to fix!

    Also, the links @Hui Liu-MSFT suggested are bit outdated (depreciated or will end support in few years) as Microsoft has improved their way of connecting to Share Point.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.