question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

New command: add new list item

See original GitHub issue

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

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:14 (11 by maintainers)

github_iconTop GitHub Comments

2reactions
rfjschoutencommented, Apr 25, 2018

You could then use a command parameter like:

–SinglePeopleField “[{‘Key’:‘i:0#.f|membership|markh@conotoso.com’}]”

Got this from @mpowney spo list add command.

1reaction
waldekmastykarzcommented, Mar 17, 2018

@mpowney, got another update on the AddValidateUpdateItemUsingPath() method. It’s now officially documented and fully supported for use by third parties (docs available at https://github.com/SharePoint/sp-dev-docs/blob/master/docs/sp-add-ins/working-with-lists-and-list-items-with-rest.md#create-list-item-in-a-folder and will be published soon). We’re good to go. Once again thanks for pointing it out 👍

Read more comments on GitHub >

github_iconTop Results From Across the Web

SharePoint Online: Add New List Item using PowerShell
Log in to your SharePoint site and navigate to the list that you want to add an item to. · Click on the...
Read more >
Add list items - Microsoft Support
In list view, you can add a single item by using the + New command. In grid view, you can add several items....
Read more >
How to create new command that will produce list of items ...
macros - How to create new command that will produce list of items while changing formatting of single item - TeX - LaTeX...
Read more >
How To add Elements to a List in Python - DigitalOcean
The new list will contain elements from the list from left to right. It's similar to the string concatenation in Python.
Read more >
New command: add new list item · Issue #270 - GitHub
Add new list item to the specified list. command: spo listitem add -w|--webUrl <webUrl> -l|--listId [listId] --listTitle [listTitle] ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found