Network Performance Monitor

    grunt-sharepoint-list

    1.0.4 • Public • Published

    grunt-sharepoint-list

    add item to sharepoint list

    Getting Started

    This plugin requires Grunt ~1.0.3

    If you haven't used Grunt before, be sure to check out the Getting Started guide, as it explains how to create a Gruntfile as well as install and use Grunt plugins. Once you're familiar with that process, you may install this plugin with this command:

    npm install grunt-sharepoint-list --save-dev

    Once the plugin has been installed, it may be enabled inside your Gruntfile with this line of JavaScript:

    grunt.loadNpmTasks("grunt-sharepoint-list");

    The "sharepoint_list" task

    Overview

    In your project's Gruntfile, add a section named sharepoint_list to the data object passed into grunt.initConfig().

    grunt.initConfig({
      sharepoint_list: {
        projectA: {
          options: {
            username: "", // used user account
            password: "",
            ntlm_domain: "",
            list: "", // sharepoint list to post to
            base: "", // sharepoint base url
            listitem: {
              // posted list item
              __metadata: {
                type: "SP.Data.ApplicationReleaseInfoListItem"
              },
              Project_x0020_NameId: 0,
              Application_x0020_NameId: 0,
              Title: "",
              Release_x0020_Date: grunt.template.today("dd/mm/yyyy"),
              VersionNumber: "",
              ReleaseNotes: ""
            }
          }
        }
      }
    });

    Options

    options.username

    Type: String Default value: ', '

    A string value that is used to do something with whatever.

    Usage Examples

      sharepoint_list: {
        projectA: {
          options: {
            username: '',
            password: '',
            ntlm_domain: '',
            list: 'ApplicationReleaseInfo',
            base: 'https://companyname.com/depict',
            listitem: {
                __metadata : {
                  type: 'SP.Data.ApplicationReleaseInfoListItem'
                },
                Project_x0020_NameId: 0,
                Application_x0020_NameId: 0,
                Title: 'new release title',
                Release_x0020_Date: grunt.template.today('dd/mm/yyyy'),
                VersionNumber: '1.0.0',
                ReleaseNotes: 'all info about the release'
              }
            }
          },
      },

    Install

    npm i grunt-sharepoint-list

    DownloadsWeekly Downloads

    2

    Version

    1.0.4

    License

    ISC

    Unpacked Size

    10.7 kB

    Total Files

    8

    Last publish

    Collaborators

    • koenluyten