Skip to main content
Question

Difficulty getting run script in automations to accept Input recordId that has been set up correctly by previous step, e.g after 'when record enters a view'

  • August 6, 2026
  • 2 replies
  • 20 views

Margaret_Picker
Forum|alt.badge.img+13

Despite log showing execution:

I still get error :

I believe the script to be OK,  “let recordId = input.recordId;”

 

Does anyone have any suggestions? 

2 replies

  • New Participant
  • August 6, 2026

The value is read through input.config(), rather than directly from input. Try:

const { recordId } = input.config();
console.log(recordId);

In the Run a script action, add an input variable named recordId, then map it to the Record ID token from the trigger step. For When record enters a view, choose that trigger's Airtable record ID token. The variable name must match exactly, including case.


TheTimeSavingCo
Forum|alt.badge.img+32

Yeap, echoing TinyOpsStudio.  You can also try this:

let recordId = input.config().RecordId