1.0.4 • Published 5 years ago

grunt-sharepoint-list v1.0.4

Weekly downloads
1
License
ISC
Repository
github
Last release
5 years ago

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'
          }
        }
      },
  },
1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1-np

5 years ago

1.0.0

5 years ago

0.1.4

5 years ago

0.1.3

5 years ago

0.1.2

5 years ago

0.1.1

5 years ago

0.1.0

5 years ago