shareplum icon indicating copy to clipboard operation
shareplum copied to clipboard

Can’t add fields to new list

Open jacobster42 opened this issue 4 years ago • 1 comments

I’ve been trying to add data to a newly created SP list, and it keeps telling me the field I have doesn’t exist. The only way I can get this resolved is manually create the fields in Sharepoint. Is there a programmatic way to add fields and their values. I’m passing a list of dictionaries when trying this.

jacobster42 avatar Nov 30 '20 16:11 jacobster42

There is, but it kinda sucks. I've started working on this problems a bunch of times, but I can never figure out how to make the code clean enough to be remotely useful. It's pretty easy to pull up the Microsoft documentation on how to do this and add it to SharePlum, but the amount of effort it would take to specify how to create the new field in code, you could have done it ten times manually. I know that there are situations where it could be useful to do this programmatically. I just can't come up with a good way to do it.

jasonrollins avatar Jan 29 '21 00:01 jasonrollins