hey! trying to get this script to run, and I cannot seem get it right. Any help would be appreciated!
Scenario: I'm trying to update a list of Records as a step in an automation. I have my automation to receive both the row for which the values will be inherited from, and the list of records in which to deposit the values.
I've modified what seems to be a popular script, below:
Script
let config = input.config();
let StackerEmail = config.StackerEmail
let ALink = config.ALink
let records = config.RowIDs
let table = base.getTable("Projects");
for (let record of records) {
await table.updateRecordAsync(record, {
"[For Stacker] A Email": [{StackerEmail}],
"A Link": [{ALink}],
})
}
The error I receive:
ERROR
Error: Field "fldLpHsJuxicnS2eZ" cannot accept the provided value.
at main on line 8
input (With examples & field types)
RowIDs | rec7eF4Q0oCnT3Yfi, rec9rkbTs8QjYvC5Y, recC3F48nlqUuu5KL, ect. (Type: List of 'Airtable record ID')
StackerEmail | test@test.com (type: Email)
ALink | Max Eval 2 (Type: Linked Record Name)
Columns being edited (Will receive the values):
"[For Stacker] A Email"
"A Link"
As a note, both the input, and the desired output rows are within the same table.
Thank You!