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

How to Create a Record for Custom Module #21

Open
jayomayan opened this issue Jun 13, 2023 · 3 comments
Open

How to Create a Record for Custom Module #21

jayomayan opened this issue Jun 13, 2023 · 3 comments

Comments

@jayomayan
Copy link

jayomayan commented Jun 13, 2023

Followed this and it gives me an error

com \ zoho \ crm \ api \ exception\ SDKException


$bank = ZohoManager::useModule('Banks');
       $response = $bank->create([
           'Deal' => $dealid,
           'Bank_Institution_Name' =>  $json_data->bank_name,
           'Account_Name' => $json_data->account_name,
           'Account_Number' => $json_data->account_number,
]);

Banks is the API name of the custom module.

@upsmod
Copy link
Contributor

upsmod commented Jul 2, 2023

@jayomayan you need to look on the converter.php inside a zohocrm/zoho-php-sdk
look for variable dump($detailsJO); maybe on line 175-177
and look for error

@aemaddin
Copy link
Contributor

aemaddin commented Jul 8, 2023

@jayomayan can you please send me the error that show up after running this code?

@upsmod
Copy link
Contributor

upsmod commented Jul 8, 2023

@jayomayan can you please send me the error that show up after running this code?

SDKException sometimes doesn't telling anything about exception message - i will look for it when i catch some error with mismatch types from sending to Zoho

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

3 participants