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

Lakshmanan B 81 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!

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,808 questions
Windows Presentation Foundation
Windows Presentation Foundation
A part of the .NET Framework that provides a unified programming model for building line-of-business desktop applications on Windows.
2,762 questions
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
10,858 questions
SharePoint Development
SharePoint Development
SharePoint: A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.Development: The process of researching, productizing, and refining new or existing technologies.
2,948 questions
{count} votes

2 answers

Sort by: Most helpful
  1. Lakshmanan B 81 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 B 81 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.