Hi Everyone - I am very new to API development and coding all together. I need some help with a script I am trying to implement. I keep getting this error thrown Error: Request parameters failed validation. and I have no idea why. Any help is greatly appreciated.
// Get the table and the newly created record
let table = base.getTable('Table Name');
let recordId = input.config().recordId; // The ID of the newly created record
let record = await table.selectRecordAsync('recordId');
// List of users to assign randomly
const users = [' User1 ', ' User2 ', ' User3 '];
// Pick a random user
let randomUser = users[Math.floor(Math.random() * users.length)];
// Update the Assignee field with the selected user
await table.updateRecordAsync( 'recordId', { 'Assignee': randomUser
});