Help

Welcome to the Airtable Community! If you're new here, check out our Getting Started area to get the most out of your community experience.

Link Fields Node JS

Topic Labels: API
469 1
cancel
Showing results for 
Search instead for 
Did you mean: 

Hi

  • I have a table called mentors
  • I have a table called jobs
  • I linked the two with a link field
  • what I m trying to do is to display the job name instead of the job id

      const title= 'Prenez en main votre vie pro   | CarriereMatch.com'
      
      const getRecords = async () => {
        var test ="string"
        const records = await mentors
          .select({maxRecords: 6, view: "Grid view"})
          .eachPage(function page(records, fetchNextPage) {
            records.forEach(function(record) {
              jobs.find(record.fields["Quel est votre métier actuel"], function(err, record) {
                if (err) { console.error("Big Error",err); return; }
                console.log(record)

              });        
            });
           
            fetchNextPage();  
          });     
        }

        getRecords()
        .then(function(records) {   
          
         res.render('index',{title: title, records}); 



     });


1 Reply 1

Salut Chris!

I’m not sure what you’re trying to accomplish here, is this returning an error?