Hi All,
I've got an app that links to a SP library as a data source ( I want a library rather than a list as I have a populate word document flow linked to the library that I want to keep). I've tried all sorts to patch the forms to the library with not a lot of success, so am trying to patch the individual tables to the library columns instead.
The data cards are all linked to the SP library 'Risk Assessments', some of the columns are choice, some single line text, some multi text, 1 date, and others pull data from datacards elsewhere in the app.
Through research it looked like I could get away with the below, but I get the error that I need to use SPFileCollection.Add(), so I guess the question is, is it possible to patch datacards to a SP datasource(library), or will I need to create a library of lookup columns and link them to a list?
Would appreciate anyone being able to have a look at the below and see if there's anything glaring that I've missed?
Thanks
Patch('Risk Assessments',
{'Job Type':DataCardValue66.Selected.Value},
{'Activity':DataCardValue35.Text},
{'Team members': DataCardValue58.SelectedItems}, {'Date': DataCardValue31.SelectedDate},
{'Task Location':DataCardValue32.Text},
{'Task 1': DataCardValue33.Text},
{'Task 1 Hazards':DataCardValue36.SelectedItems},
{'Task 1 existing controls': DataCardValue37.SelectedItems},
{'Task 1 consequence': DataCardValue55.Selected},
{'Task 1 likelihood': DataCardValue59.Selected},
{'Task 1 additional controls': DataCardValue42.Text},
{'Task 1 residual consequence':DataCardValue56.Selected},
{'Task 1 residual likelihood':DataCardValue57.Selected});