How to Insert/Update sharepoint list from C# .NET?

Поделиться
HTML-код
  • Опубликовано: 7 окт 2024

Комментарии • 24

  • @allenstroud4236
    @allenstroud4236 Год назад

    Thank you so very much! This works for me. I was working on my VM and it would not work but I found that it was my DNS settings. I tested it on a Windows 10 box that was not a VM and it worked. I'll re-visit my VM DNS, but I wanted to thank you.

  • @sepafra1
    @sepafra1 3 года назад +1

    Hi, nice video. How do you create new columna for the metadata? I mean new columna outsider the standard columna guven by shp

  • @arunskaria7646
    @arunskaria7646 5 лет назад

    Super tutorial. Thanks

  • @akosiwong
    @akosiwong 5 лет назад +1

    thanks for the tutorial, one question, how to write the whole list in a grid/table?

  • @nqaiser
    @nqaiser 6 лет назад

    Thanks for the tutorial, It is very helpful. I am just wondering how secure is the communication between the application and the sharepoint. Is there a way to make this information transfer more secure.

  • @TomResing
    @TomResing 7 лет назад

    It's great to see an example of using SharePoint's client side object model from C#. I'm curious, do you have another method of authenticating you use besides needing a password in the settings? That method seems fragile.

    • @ParagyteTech
      @ParagyteTech  7 лет назад +1

      Tom, i think more secure way would be to use OAuth, that will require a registering app and sending client id+client secret and let user direct/redirect to/from microsoft online auth url. thanks for point out security flaw :)

    • @TomResing
      @TomResing 7 лет назад

      It's still a great example. I like the OAuth method, because it would show real-world practices in the example.

  • @veerakilaru2071
    @veerakilaru2071 3 года назад

    Project creation is of which type is used

  • @TarunYadavVlogs
    @TarunYadavVlogs 2 года назад

    when I use above, I got this error : The sign-in name or password does not match one in the Microsoft account system even the credentials are correct and MFA is disabled

  • @Prashantkumar-xr9lb
    @Prashantkumar-xr9lb 2 года назад

    The type or namespace name 'SharePointOnlineCredentials' could not be found (are you missing a using directive or an assembly reference?
    showing this type of error but i have already added refrance

  • @GH-yk6zd
    @GH-yk6zd 4 года назад +1

    ConfigurationSettings.AppSettings has been marked obsolete and no longer part of System.Configuration

  • @blutkraehe_official
    @blutkraehe_official 4 года назад

    hi, thanks! i had a colunm ""Straße" for geran (also Street), C# does not find the column in SharePoint with this name .... any solution ?

    • @GH-yk6zd
      @GH-yk6zd 4 года назад

      use ss instead of ß

  • @smj0x
    @smj0x 6 лет назад

    can you show us how did you put the values in App.config, just a sample

    • @prabuc4485
      @prabuc4485 6 лет назад +2

      Syed Mohammed
      no need webconfig : just follow :
      context.Credentials = new NetworkCredential("username", "password");
      List list = context.Web.Lists.GetByTitle("CompaniesList1");
      ListItemCreationInformation itemCreateInfo = new ListItemCreationInformation();
      ListItem oListItem = list.AddItem(itemCreateInfo);
      oListItem["Title"] = "My New Item!";
      oListItem.Update();
      context.ExecuteQuery();

    • @smj0x
      @smj0x 6 лет назад

      thanx

  • @leroylimll
    @leroylimll 4 года назад

    able to share the code?

  • @elcapifranco
    @elcapifranco 5 лет назад

    share the prooject please

  • @elcapifranco
    @elcapifranco 5 лет назад

    y el codigo?

  • @assamiyou
    @assamiyou 5 лет назад

    not good at all.

  • @vimleshsharma3251
    @vimleshsharma3251 Год назад

    I 'm getting this error
    Cannot contact site at the specified URL DomainName/Lists/DotNetToSharePoint/AllItems.aspx.
    There is no Web named "/sites/DMSEC/Lists/DotNetToSharePoint/AllItems.aspx/_vti_bin/sites.asmx".