Skip to main content
Solved

Empty value of a lookup field form input.config via sctipt?


Forum|alt.badge.img+3

Hi community members,

 

I’m setting up an automation that triggers based on the date but running into a problem with getting the values of the record that triggered the automation…

 

To give you context, the main table is "Reservation" and contains all details of the reservation. In it, there is also a linked field "Yacht" which points to another table "Yachts". I have also added 2 lookup fields in Reservations : yacht name and yacht model.

 

I defined the input variables but when I want to output them, the linked fields are empty arrays (see screenshots below).

 

Please advise on how to fix it because I need to pass these values via webhook for further use.

 

 

Best answer by ginozmaj

That’s exactly what I was doing (just console.log the input.config) but didn’t work..

I have now deleted the automation and started from scratch and it seems to work… weird but glad it works.

 

thanks

View original
Did this topic help you find an answer to your question?

6 replies

Milan_Automable
Forum|alt.badge.img+3
  • Participating Frequently
  • 45 replies
  • March 18, 2025

I cannot reproduce this, if I click on the arrow it shows the value, as long as the lookup has a value:

 

— Best, Milan - Automable.AI Free Airtable consultation


Forum|alt.badge.img+3
  • Author
  • New Participant
  • 2 replies
  • March 18, 2025

Hi Milan,

Here’s the proof the fields do have a value:

 

What might I be missing here?
 


Milan_Automable
Forum|alt.badge.img+3
  • Participating Frequently
  • 45 replies
  • March 18, 2025

Hmm I’m not sure. Can you paste the script you’re using? And what happens if you add

console.log(‘Config’, input.config())

instead of the script?

 

This might sound obvious, but are you sure the record you’re passing in is the same record that you sent the screenshot of?

 

Milan

 


Milan_Automable
Forum|alt.badge.img+3
  • Participating Frequently
  • 45 replies
  • March 18, 2025

Also, what is showing in the Script Input?

 


Forum|alt.badge.img+3
  • Author
  • New Participant
  • 2 replies
  • Answer
  • March 18, 2025

That’s exactly what I was doing (just console.log the input.config) but didn’t work..

I have now deleted the automation and started from scratch and it seems to work… weird but glad it works.

 

thanks


Milan_Automable
Forum|alt.badge.img+3
  • Participating Frequently
  • 45 replies
  • March 18, 2025

Ok, good to hear that at the end it worked :)


Reply