Search Records returning different values than actually present

Search Records returning different values than actually present

Hey!

I have this following line in my deluge script:
accountSearch = zoho.crm.searchRecords("Accounts","(RS_Enroll_ID:equals:" + rsid + ")",1,200,{"cvid":864868001088693817});

info "Account search size: " + accountSearch.size();

listOfAccounts = zoho.crm.searchRecords("Accounts","(RS_Enroll_ID:equals:" + rsid + ")and(Account_Status:equals:Open)",1,200);

info "List of accounts size: " + listOfAccounts;

The first accountSearch returns 35 records while the second listOfAccounts returns 88. Interestingly, 88 is the correct number, but I'm very confused why my search using the custom view id isn't working as expected. When I'm within the custom view and filter records, I get the correct 88 number:


This RS ID number I have plugged into this filter is the RS ID that I'm using in my searchRecords. 

Anybody have anything similar happen to them? Any ideas on how to resolve?
    • Sticky Posts

    • Announcing the new SKILL.md for Zoho CRM and the updated OAS repository!

      We are introducing a new zoho-crm skill to make working with Zoho CRM Developer tools (like APIs, functions, widgets, client scripts, queries etc) easier and faster, with the help of AI in your preferred AI harness like Claude Code, Codex, Cursor, VSCode
    • Kaizen #256 - Build an Arrival Readiness Web Tab in Zoho CRM

      Hi everyone! Welcome back to the Kaizen series! In the post, we discuss a use case in hospitality industry: how an Arrival Readiness web tab widget can be used to let reception staff identify and resolve issues before arrival of guests. Use case In the
    • Kaizen #198: Using Client Script for Custom Validation in Blueprint

      Nearing 200th Kaizen Post – 1 More to the Big Two-Oh-Oh! Do you have any questions, suggestions, or topics you would like us to cover in future posts? Your insights and suggestions help us shape future content and make this series better for everyone.
    • Kaizen #226: Using ZRC in Client Script

      Hello everyone! Welcome to another week of Kaizen. In today's post, lets see what is ZRC (Zoho Request Client) and how we can use ZRC methods in Client Script to get inputs from a Salesperson and update the Lead status with a single button click. In this
    • Kaizen #222 - Client Script Support for Notes Related List

      Hello everyone! Welcome to another week of Kaizen. The final Kaizen post of the year 2025 is here! With the new Client Script support for the Notes Related List, you can validate, enrich, and manage notes across modules. In this post, we’ll explore how