Description
Creates a new list item inside a SharePoint list.
Parameters
Name | Type | Description |
---|---|---|
listTitle | String | The title of the list that the new list item will be added to. Exactly one of |
listUrl | String | The relative server URL of the list that the new list item will be added to. Exactly one of |
listItemDetails | Object | An 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 |
authDetails | Object, optional | The authDetails set in the worker configuration to use. If not set the request will use the default authDetails |
authDetails.identifier | String | The identifier of authDetails set in the worker configuration |
authDetails.authType | String | The 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"
}
}
}