Hi Dear community
i’m facing a scipting error
pleaase help me
i need to connect my ingredients tables to the API open food facts
Thanks
let tableIngredients = base.getTable("Ingrédients");
let tableOFF = base.getTable("Open Food Facts");
let ingredients = await tableIngredients.selectRecordsAsync();
let offRecords = await tableOFF.selectRecordsAsync();
for (let record of ingredients.records) {
let ingredientName = record.getCellValue("Nom ingrédient");
if (!ingredientName) continue;
let response = await fetch(https://world.openfoodfacts.org/cgi/search.pl?search_terms=${encodeURIComponent(ingredientName)}&search_simple=1&action=process&json=1);
let data = await response.json();
let product = data.products && data.products.length > 0 ? data.products[0] : null;
if (!product) continue;
let nutriments = product.nutriments;
let energie = nutriments["energy-kcal_100g"] || null;
let proteines = nutriments["proteins_100g"] ||






