How to search for related records in Zoho Books?
Hello,
Note: This is in a Zoho Creator function
I'm having some difficulty writing a function in Deluge which will search for related records in Zoho Books. In this case, I am trying to find all Sales Order records that are associated with a certain estimate. However, my function returns 200 records (the max that can be retrieved in one call), rather than the 1 Sales Order that I know is related to the given Estimate ID.
(code below)
What is the correct way to retrieve a list of all sales orders in Zoho Books that have a given value for "estimate_id"?
- // set variables
- estimateId = "102235000000XXXXXX";
- orgId = "XXXXXXXX";
- connection = "zoho books";
- // formulate the search as described in the "<search>" section of the linked documentation
- search = "estimate_id=" + estimateId;
- relatedRecords = zoho.books.getRecords("SalesOrders",orgId,search,connection).get("salesorders");
- info relatedRecords.toJsonList().size();
- info relatedRecords;
the resulting info log:
- 200
- {"current_sub_status":"closed","date":"2021-02-26",....
- // followed by the details on 200 records that may or may not match my search criteria
- Thanks,
Ian Melchior
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
-
-
-
-
-
-
-
-
-
Sticky Posts
How to Add Users to your Organization in ZohoMail?
A better clarity so you can create other users to start using Zoho Mail. You can directly Add Users from the Control Panel to your Organization. You can invite users with the existing email address. If the person (user) already uses ZohoCRM, then you can import users from Zoho CRM. You can also import them using a .csv file. (if you are planning to add them in Bulk) In this topic, We will be discussing on how to Add and Invite users only. The Import options are self explanatory. ____________________________________________________________________________________________________________
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.