title: how to get lookup field value from entity object?
body: <p>I have a list of "Participants",which is an entity. In that entity one lookup is there. how to get the Id,LogicalName values?
  I was trying like this. but <code>ContId</code> is <code>undefined</code></p>
  
  <pre><code>function GetTrips(contactId) {
      debugger;
      var participant = RetrieveCrmRecords("new_participant", null, null, null, null, null);
      for (var i = 0; i &lt; participant.results.length; i++) {
          var ContId = participant.results[i].new_TripPerticipants.Id;
         //===================
      }
  </code></pre>
  
  <p>from that <code>RetrieveCrmRecords</code> I got following results: here <code>new_TripParticipants</code> is the lookup field.</p>
  
  <p><img src="https://i.stack.imgur.com/6n9Kb.jpg" alt="enter image description here"></p>