asciisd / zoho-v3

Laravel Zoho API V3 Package
MIT License
16 stars 17 forks source link

Attachments #20

Open jayomayan opened 1 year ago

jayomayan commented 1 year ago

How do i get the list of attachment in a module ?

    $leads = ZohoManager::useModule('Leads');
    $lead = $leads->getRecord($request->leadid);
    $lead_attachments = $lead->getRelatedListRecords('Attachments');
    $lead =$lead->getkeyValues();

error : Call to undefined method com\zoho\crm\api\record\Record::getRelatedListRecords()

upsmod commented 1 year ago

@jayomayan

$leads = ZohoManager::useModule('Leads');
//This is a get lead
$lead = $leads->getRecord($request->leadid);

//This is a get Related
$attachments = $leads->getRelatedListRecords($request->get('leadid'), 'Attachments');