AnsweredAssumed Answered

FM 14 PHP Request returns zero records, why?

Question asked by Tom_Droz on May 21, 2018
Latest reply on May 22, 2018 by Tom_Droz

I'm using FM14 making a PHP request for all records (there are 400+)  the results from script below show "0" 

Can someone point out what I'm missing?  Thank you!


<!-- declare charset as UTF-8 -->
<meta http-equiv="content-type" content="text/html; charset=UTF-8">



// Create find request on layout
$findreq = $fm->newFindAllCommand('CLICK');
$result = $findreq->execute;


// Get records from found set
$records = $result->getRecords;


// Print number of records found
echo 'Found ' . count($records) . " results.<br><br>";


// Print out records
foreach ($records as $record) {
    echo $record->getField('Click_ATR::Subject_Mls_Number') ."^".$record->getField('Click_ATR::Subject_Address') ."^".$record->getField('Click_ATR::Listing_Agent_1') ."^". $record->getField('Click_ATR::Internet_Search_Variable') ."^".$record->getField('Click_Atr_SP_Checklist::Item1')."^".$record->getField('Click_Atr_SP_Checklist::Name1') . "<br>";