Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Attachments #20

Open
jayomayan opened this issue Jun 12, 2023 · 1 comment
Open

Attachments #20

jayomayan opened this issue Jun 12, 2023 · 1 comment

Comments

@jayomayan
Copy link

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
Copy link
Contributor

upsmod commented Jul 9, 2023

@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');

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants