0
print_r($record); 

results in....

sObject Object ( 
    [type] => rie__Session__c 
    [id] => a0R0J00000IAhrHUAT 
    [values] => Array ( 
        [rie__Event__c] => a0I0J00000H6g5KUAR 
    ) 
    [fieldsToNull] => 
)

This does not work....

    <?php  echo   $record['rie__Event__c']?>

Would also like to....

    <?php  echo   $record['id']?>
Barmar
  • 741,623
  • 53
  • 500
  • 612
user1787060
  • 1
  • 1
  • 1

1 Answers1

1

The first line of the print_r() output tells you that it's an object, not an array. To access object properties you use ->, not [].

<?php  echo $record->values['rie__Event__c']; ?>
<?php echo $record->id; ?>
Barmar
  • 741,623
  • 53
  • 500
  • 612