View source: R/sharepoint_list_post.R
sp_writeListData | R Documentation |
This method allows to write data to a SharePoint list. Therefore, type checks and lookups will be performed (see details).
sp_writeListData(con, listName = NULL, listID = NULL, data)
con |
A SharePoint connection returned by sp_connection() |
listName |
Name of the SharePoint list to write to |
data |
List or dataframe of the data to write into the SharePoint list |
In order to upload the data correctly, the following data types are casted automatically
Text columns
Numeric columns
User names
DateTime columns
Lookup columns linking to another table
sp_con = sp_connection("https://yourdomain.sharepoint.com", "YourUsername", "YourPassword", Office365 = T) sp_writeListData(sp_con, "yourList", list(column1 = "content1", column2 = 2, column3 = 1.23, user = "Username"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.