Toggle menu

createListItem

Description

Creates a new list item inside a SharePoint list.

Parameters

NameTypeDescription
listTitleStringThe title of the list that the new list item will be added to. Exactly one of listTitle or listUrl must be specified
listUrlStringThe relative server URL of the list that the new list item will be added to. Exactly one of listTitle or listUrl must be specified
listItemDetailsObjectAn object containing the details for the new list item. This object should reflect the properties of the list the new item is being added to
authDetailsObject, optionalThe authDetails set in the worker configuration to use. If not set the request will use the default authDetails
authDetails.identifierStringThe identifier of authDetails set in the worker configuration
authDetails.authTypeStringThe authType of authDetails set in the worker configuration

Example

{
    "id": "123",
    "jsonrpc": "2.0",
    "method": "createListItem",
    "params": {
        "listUrl": "sites/goss/Lists/GossTest",
        "listItemDetails": {
            "Title": "GOSS Test",
            "Name": "Created via the SharePoint worker",
            "Address1": "24 Darklake View",
            "Address2": "Estover",
            "Address3": "Plymouth",
            "PostCode": "PL6 7TL",
            "DateTest": "2018-08-13 13:39:51.667",
            "MultiText": "This<br>is<br>some<br>multiline<br>text<br>sent<br>via<br>the<br>SharePoint<br>Worker",
            "ChoiceTest": "Pears",
            "Organisation": "GOSS",
            "Email": "support@gossinteractive.com"
        }
    }
}

Last modified on 27 June 2023

Share this page

Facebook icon Twitter icon email icon

Print

print icon