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?

    Access your files securely from anywhere

        Zoho Developer Community




                                  Zoho Desk Resources

                                  • Desk Community Learning Series


                                  • Digest


                                  • Functions


                                  • Meetups


                                  • Kbase


                                  • Resources


                                  • Glossary


                                  • Desk Marketplace


                                  • MVP Corner


                                  • Word of the Day



                                      Zoho Marketing Automation


                                              Manage your brands on social media



                                                    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

                                                                          • CRM Community Learning Series

                                                                            CRM Community Learning Series


                                                                          • Kaizen

                                                                            Kaizen

                                                                          • Functions

                                                                            Functions

                                                                          • Meetups

                                                                            Meetups

                                                                          • Kbase

                                                                            Kbase

                                                                          • Resources

                                                                            Resources

                                                                          • Digest

                                                                            Digest

                                                                          • CRM Marketplace

                                                                            CRM Marketplace

                                                                          • MVP Corner

                                                                            MVP Corner





                                                                              Design. Discuss. Deliver.

                                                                              Create visually engaging stories with Zoho Show.

                                                                              Get Started Now