Using this awesome package, I'm having trouble on how to get the actual value from the returned data from ZohoCRM. Here's an example:
Using dd():
zcrmsdk\crm\crud\ZCRMRecord {#1 ▼
-entityId: "111"
-moduleApiName: "Leads"
-lineItems: []
-lookupLabel: null
}
Using var_dump():
object(zcrmsdk\crm\crud\ZCRMRecord)#111 (4) {
["entityId":"zcrmsdk\crm\crud\ZCRMRecord":private]=>
string(3) "111"
["moduleApiName":"zcrmsdk\crm\crud\ZCRMRecord":private]=>
string(5) "Leads"
["lineItems":"zcrmsdk\crm\crud\ZCRMRecord":private]=>
array(0) {
}
["lookupLabel":"zcrmsdk\crm\crud\ZCRMRecord":private]=>
NULL
}
Here's the code in getting the data:
$records = ZohoManager::useModule('Leads')->searchRecordsByWord('word to be searched');
$first_record = $records[0];
I would like to know how to get the specific value like entityId? Thank you.