Trying to integrate Zoho Invoice to CRM
I would like to use a custom function to create a Potential in CRM whenever an estimate is sent. Having some difficulty.
1. How does Zoho link a Invoice customer_id with a Contact or Account id in CRM?
2. Currnently, I find the Company-name from the estimate and then look it up the Account in CRM. That is working. When I try to read the ACCOUNTID, I get a "Text can not be cast to Number message. Here is the offending code...
CustName = estimate.get("customer_name");
Cust = zoho.crm.searchRecordsByPDC("Accounts","accountname",CustName);
AcctID = Cust.get("ACCOUNTID");
The last line causes the error. I am able to see the contents of Cust and there is definitely data in there called "ACCOUNTID". I just can't read it in this custom function.
Access your files securely from anywhere
Zoho Developer Community
Deliver unforgettable customer experiences
Deliver unforgettable customer experiences
New to Zoho Marketing Plus?
Everything you need to run your marketing
New to Zoho Marketing Plus?
Everything you need to run your marketing
Zoho Desk Resources
-
Desk Community Learning Series
-
-
-
-
-
-
-
-
-
Zoho TeamInbox Resources
Zoho DataPrep Resources
Zoho CRM Plus Resources
Zoho Books Resources
Zoho Subscriptions Resources
Zoho Projects Resources
Zoho Sprints Resources
Qntrl Resources
Zoho Creator Resources
Zoho Campaigns Resources
Zoho CRM Resources
Zoho Show Resources
Writer Get Started. Write Away!
Writer is a powerful online word processor, designed for collaborative work.