@Ricky24
I assume that you want to add selected new Items to a SharePoint list based on a gallery with Items from an Excel table. You can do this by using the Collect function. In the screenshot, there is a list of names from a datasource like Excel. In that table, the names are called LastName and FirstName. The TextInput boxes in the gallery have a default property for ThisItem.FirstName and ThisItem.LastName respectively. The checkbox has as its OnCheck property Collect(splist,{First: txtFirst.Text, Last: txtLast}) and Uncheck property
Remove(splist, {First: txtFirst.Text, Last: txtLast}) . The splist has two columns named First and Last.
The result is shown in the datatable on the right side. Its Items property is splist. As you can see, the data from the Excel file is added to the splist by checking the checkbox in the gallery.
When the checkbox is unchecked, the names are removed from the splist.