Data is housed in an on-prem SQL db. Each record (in Table1) has over 250 fields that are all required. I believe a collection is the correct route for saving records (using the collect method). What's the best way to create a record, without having to hard code all 250+ data fields?
I know in Sharepoint I just do ClearCollect(Alldata,datasource) this returns all data in the list plus all columns. Some things to think about though.
1. I think there is a Column limit that can be returned. Not sure how many but I think 250 may not be in that.
2. Collections atre non delegable so you may have issues with how much data you want to return. Max would be 2000 records.
Hi @KUNGFUPANDA559 ,
Have you ever used Edit Form? Edit Form may be the best ways to create records without having to hard code all 250 fields. Do you think it works well for you?
Patch function and Collect function are also good ways, and Collect is better in performance. Though you need to add Textinput box manually to pass values to Data source.
You can create a Edit Form, and use SubmitForm function to create a record.
SubmitForm(Form1); NewForm(Form1)
You also can use Patch/Collect function and Textinput boxes to create new record as below, which is a little more complicated, though, because you might need to create a lots of boxes manually.
Patch(Date Source, Defaults(Data Source), {Field1: Textinput1.Text, Field2: Textinput2.Text, … }) Collect(Data Source, {Field1: Textinput1.Text, Field2: Textinput2.Text, … })
Best regards,
Sik
User | Count |
---|---|
183 | |
106 | |
88 | |
44 | |
43 |
User | Count |
---|---|
226 | |
108 | |
105 | |
68 | |
68 |