Adding a button with the “Add Row” action works for creating one row but doesn’t address splitting the input into multiple lines.
Using Computed Columns (e.g., splitting the Text Entry into an array) doesn’t seem to integrate easily with the Add Row action.
Manually creating multiple Text Entry boxes and assigning them individual actions would work but is impractical for 10–20+ lines.
Challenges
I’d like this to be efficient, so users don’t have to manually press the button for each line. Ideally, the solution would:
Split the Text Entry input into an array (one item per line).
Use that array to dynamically create a row for each item in the table.
Questions for the Community
Is there a JavaScript column or preferably another method using Glide Tables Computed columns that can split the text and handle the row creation in Glide?
Has anyone implemented a similar solution, and if so, how?
Are there any external integrations or creative workarounds you’d recommend to accomplish this?
Any advice or examples would be greatly appreciated!
const lines = p1.split(/\r?\n/)
const appID = "ZdYhAx4mlLWUHZX7BpSO"; <--- change this to your app id
const mutations = lines.map(line => (
{
"kind": "add-row-to-table",
"tableName": "native-table-9jiFvByoqLAI4fpLffY9",<----- change this to your table id
"columnValues": {
change this to your column key ----> "57117": "Predefined data here",
change this to your column key ----> "Name": line
}
}
));
const finalJSON = {
appID: appID,
mutations: mutations
};
const jsonString = JSON.stringify(finalJSON, null, 2);
return jsonString ;
but we need to wait until the Webhook trigger is released (coming soon) to make this easier and in real-time. In any case using your example, you will consume 4 updates to carry it out
Then, is there a way to store a private api key in a table and use it as a secret? As example, having multiple calls with the same api key, without having to duplicate it everywhere…