Help

Re: Linking records in automation script

590 0
cancel
Showing results for 
Search instead for 
Did you mean: 
Matteo_Cossu3
6 - Interface Innovator
6 - Interface Innovator
for (let d in daylist) {
await currentTable.createRecordAsync({"Actual Date": daylist[d], 
                                "Assignee": [{id: assigneeID}]})
};

Is there any reason why the above snippet works in Scripting Blocks and not in the Automation Script?

(assigneeID is a input.config record id from automation trigger)

Err message is:

Error: Field “flduSGLFu8QyJ6n9l” cannot accept the provided value at main on line 22

2 Replies 2

Hi Matteo, that looks fine actually. Could I get the output of console.log(assigneeID) by any chance please?

Matteo_Cossu3
6 - Interface Innovator
6 - Interface Innovator

Screen Shot 2022-06-10 at 8.25.27 AM

lol, i knew it must’ve been something silly. Thank you @Adam_TheTimeSavingCo. it was indeed rendering as an object. Fixed.