Description
Attach a file to a list item in a SharePoint list.
Parameters
Name | Type | Comments | |
---|---|---|---|
listTitle | String | The title of the list that contains the list item to attach the file to. Exactly one of 'listTitle' or 'listUrl' must be specified | |
listUrl | String | The relative server list that contains the list item to attach the file to. Exactly one of 'listTitle' or 'listUrl' must be specified | |
listItemId | Number | The id of the list item to attach the file to | |
filestoreId | String/UUID | UUID file identifier of the file to upload | |
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 the sharepointAuthDetails (in the worker configuration) you would like to use | |
authDetails.authType | String | The authentication of the sharepointAuthDetails (in the worker configuration) you would like to use | |
fileName | String, optional | The name to call the file when it is uploaded to SharePoint. If not specified it will take the name of the file in the file store | |
filestoreApiKey | String, optional | An API Key to access the file store |
Example
{
"id": "123",
"jsonrpc": "2.0",
"method": "attachFileToListItem",
"params": {
"listTitle": "GossTest",
"listItemId": 1,
"filestoreId": "00000000-0000-0000-0000-000000000000",
"fileName": "MyImage.jpg"
}
}
Last modified on 27 June 2023