Hello @LambdaErmine807 ! You say "The data table is linked to a sharepoint file". How is it linked?
When I create a data table using a Data Connector (such as the Sharepoint Data Connector), I get not only a "Source" script, but also an "Update" Script.
- Source generates a new table the same way the table was first generated - all changes and edits are lost
- Update script refreshes the data from the linked data source, but keeps the existing table including all saved Data Table Scripts, Formula Columns, etc.
If you tell me more about how you have "Linked" to the Sharepoint file, I might be able to offer more ideas. (Edit: also, what is the filetype/extension of your source data file?)
"Basically looking for a way to update the existing table with fresh data" - have you tried the OneDrive and SharePoint Data Connectors? Basically, the idea is to treat your Sharepoint file as a Database to be queried (edit: using Query Builder), rather than as a file to be copy-pasted. The initial setup takes a few minutes, but it makes operations like data refresh/updating much smoother.
>>Edited in a few places to clarify.