Help

Link Fields Node JS

Topic Labels: API
1089 1
cancel
Showing results for 
Search instead for 
Did you mean: 
Chris_Honore
4 - Data Explorer
4 - Data Explorer

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
Aron
7 - App Architect
7 - App Architect

Salut Chris!

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