Skip to content

New command: add new list item #270

@waldekmastykarz

Description

@waldekmastykarz

Add new list item to the specified list

  • command: spo listitem add -w|--webUrl <webUrl> -l|--listId [listId] --listTitle [listTitle] -c|--contentType [contentType] -f|--folder [folder] ...
  • webUrl: The URL of the site where the list from which to retrieve items is located
  • listId: The ID of the list from which to retrieve items
  • listTitle: The title of the list from which to retrieve items
  • contentType: The name or the ID of the content type to associate with the new item
  • folder: The list-relative URL of the folder where the item should be created
  • ...: this command should allow using unknown properties. Each property corresponds to the list item field that should be set when creating the item. Standard properties such as webUrl, listId, listTitle, option, verbose and debug should be excluded from the SharePoint request
  • either listId or listTitle must be specified to retrieve the list, but not both
  • requires connection to a SharePoint site

For more information see the Add-PnPListItem cmdlet

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions