Other Features
Your search results

Property Manager

[insert_php]
$token=”32950abb91e8e860c4c450c90aef0457″;
$url = “https://crm.zoho.com/crm/private/json/CustomModule2/getRecords”;
$param= “authtoken=”.$token.”&scope=crmapi”;
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_TIMEOUT, 30);
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, $param);
$result = curl_exec($ch);
$output = json_decode($result,true); // Assosiative array
$owner_results = $output[‘response’][‘result’][‘CustomModule2’][‘row’];
//echo “

";  print_r($owner_results);
foreach ($owner_results as $key => $ownerresult) {
$new_ownerresults = $ownerresult['FL'];
foreach ($new_ownerresults as $key => $value) {
$CUSTOMMODULE2_ID = $ownerresult['FL'][0]['content'];
$property_manager_name = $ownerresult['FL'][1]['content'];
$CustomModule2_name = $ownerresult['FL'][2]['content'];
$SMOWNERID = $ownerresult['FL'][3]['content'];
$customModule2_owner = $ownerresult['FL'][4]['content'];
$created_time = $ownerresult['FL'][5]['content'];
$modified_time = $ownerresult['FL'][6]['content'];
$last_activity_time = $ownerresult['FL'][7]['content'];
$summary = $ownerresult['FL'][8]['content'];
$headline = $ownerresult['FL'][9]['content'];
$number_of_rooms = $ownerresult['FL'][10]['content'];
$long_description = $ownerresult['FL'][11]['content'];
$number_of_bedrooms = $ownerresult['FL'][12]['content'];
$number_of_bathrooms = $ownerresult['FL'][13]['content'];
$energy_declaration = $ownerresult['FL'][14]['content'];
$energy_date = $ownerresult['FL'][15]['content'];
$energy_class = $ownerresult['FL'][16]['content'];
$energy_consumption_sqm_year = $ownerresult['FL'][17]['content'];
$distances = $ownerresult['FL'][18]['content'];
$property_selling_price = $ownerresult['FL'][19]['content'];
$Street = $ownerresult['FL'][20]['content'];
$property_address = $ownerresult['FL'][21]['content'];
$country = $ownerresult['FL'][22]['content'];
$postal_code = $ownerresult['FL'][23]['content'];
$street_number = $ownerresult['FL'][24]['content'];
$municipality = $ownerresult['FL'][25]['content'];
$province = $ownerresult['FL'][26]['content'];
$postal_address = $ownerresult['FL'][27]['content'];
$property_size = $ownerresult['FL'][28]['content'];
$type_of_property = $ownerresult['FL'][29]['content'];
$map_info = $ownerresult['FL'][30]['content'];
$lot_size = $ownerresult['FL'][31]['content'];
$Agent = $ownerresult['FL'][32]['content'];
$publishing_date = $ownerresult['FL'][33]['content'];
$Features = $ownerresult['FL'][34]['content'];
$contract_date = $ownerresult['FL'][35]['content'];
$Commission = $ownerresult['FL'][36]['content'];
$reference_number = $ownerresult['FL'][37]['content'];
$second_seller_phone = $ownerresult['FL'][38]['content'];
$second_seller_name = $ownerresult['FL'][39]['content'];
$Agreement = $ownerresult['FL'][40]['content'];
$second_seller_emailid = $ownerresult['FL'][41]['content'];
$seller_phone = $ownerresult['FL'][42]['content'];
$seller_name = $ownerresult['FL'][43]['content'];
$codice_fiscale = $ownerresult['FL'][44]['content'];
$seller_emailid = $ownerresult['FL'][45]['content'];
$seller_address = $ownerresult['FL'][46]['content'];
$purpose_of_adding_property = $ownerresult['FL'][47]['content'];
}
//images fetching
$token ="32950abb91e8e860c4c450c90aef0457";
$url = "https://crm.zoho.com/crm/private/json/Attachments/getRelatedRecords";
$param= "authtoken=".$token."&scope=crmapi&parentModule=CustomModule2&id=$CUSTOMMODULE2_ID";
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_TIMEOUT, 30);
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, $param);
$result = curl_exec($ch);
$output1 = json_decode($result,true);
$owner_attachment_results = $output1['response']['result']['Attachments']['row'];
// echo "

"; print_r($owner_attachment_results);
$image_id = $owner_attachment_results[0]['FL'][0]['content'];

echo "

compare

".$type_of_property ."

" .$property_selling_price." €
".$number_of_bedrooms." bedrooms
".$number_of_bathrooms." baths
".$property_size." size
".$Agent."
".$publishing_date."

";
}
[/insert_php]

Compare