Relation name issue with getRelatedRecords

Relation name issue with getRelatedRecords

Hi,
I'm puzzled because of the following.

I have custom modules Participants (CustomModule5) and Departures (CustomModule1): a Contact can be a Participant in multiple Departures.
Participants used to be called Passengers; it was renamed to Participants more than a year ago. 

One function I have contains this code:

relParticipants = zoho.crm.getRelatedRecords("Passengers","Departures",DepartureID);
info relParticipants;

Note that the old custom module name is still used as the <relation_name>, but it functions OK: the info statment provides meaningful info about the Participants related to a Departure.

Here's my problem:
In a new function I'm writing, I want to process all Participant records related to a Contact. The info statement below:

relParticipants = zoho.crm.getRelatedRecords("Participants","Contacts",Cid);
info relParticipants;

...leads to this error message:
{"code":"INVALID_DATA","details":{},"message":"the relation name given seems to be invalid","status":"error"}

Replacing the  <relation_name> with Passengers or CustomModule5 leads to exactly the same error message.

Does anyone have any clue what I'm doing wrong?
    • Sticky Posts

    • 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
    • Kaizen #217 - Actions APIs : Tasks

      Welcome to another week of Kaizen! In last week's post we discussed Email Notifications APIs which act as the link between your Workflow automations and you. We have discussed how Zylker Cloud Services uses Email Notifications API in their custom dashboard.
    • Kaizen #216 - Actions APIs : Email Notifications

      Welcome to another week of Kaizen! For the last three weeks, we have been discussing Zylker's workflows. We successfully updated a dormant workflow, built a new one from the ground up and more. But our work is not finished—these automated processes are