getRelatedRecords not working while getRecords is working

getRelatedRecords not working while getRecords is working

So i have the following code that gets all the records ( at least the first 200 ) of my custom module:

notificationLines = zoho.crm.getRecords("Notification_Lines", 1, 200 );
for each notificationLine in notificationLines{
     //info notificationLine;

>> This is working fine, but:

Now, the second step is to get the records related to the selected lead:
relatedNotificationLines = zoho.crm.getRelatedRecords("Notification_Lines","Leads", leadID);
for each relatedNotificationLine in relatedNotificationLines{
     info "Test : " + relatedNotificationLines;

But I get the following error:
Test : {"code":"INVALID_DATA","details":{},"message":"the relation name given seems to be invalid","status":"error"}

Can someone help me on this?

This is the related list in my lead account:

            Zoho Marketing Automation
                    • Sticky Posts

                    • Function #41: Sync Associated Subforms!

                      Welcome back everyone! The last custom function showed how to update a Contact with Product details from it's Related list in Deals. This week, let's look at a function that lets you update subform records in two modules simultaneously when one of them is updated. Business scenario Let's look at how subform helps in an education institution that has deployed Zoho CRM. National Public School, Austin (made up, of course!) has set up Zoho CRM and it follows the same relationship pattern of "Students",

                    Zoho Pagesense Resources

                      Zoho SalesIQ Resources

                            Zoho TeamInbox Resources

                              Zoho DataPrep Resources

                                Zoho CRM Plus Resources

                                  Zoho Books Resources

                                    Zoho Subscriptions Resources

                                      Zoho Desk Resources

                                        Zoho Projects Resources

                                          Zoho Sprints Resources

                                            Qntrl Resources

                                              Zoho Creator Resources

                                                Zoho WorkDrive Resources

                                                    Zoho Campaigns Resources

                                                      Zoho CRM Resources

                                                            Design. Discuss. Deliver.

                                                            Create visually engaging stories with Zoho Show.

                                                            Get Started Now