Only Retrieving the first Record from zoho.crm.getRelatedRecords()

Only Retrieving the first Record from zoho.crm.getRelatedRecords()

Hello
I have been coding for some years but am new to Deluge.
I need to get the IDs of every Store that is related to a Deal.
"Stores" Is a custom Module and is a RELATED LIST in Deals.

When I use run..

storeData_list = zoho.crm.getRelatedRecords("Stores","Deals",330XXXXXXXXXXXX);
info storeData_list;

I get...

  • {"$approval":{"delegate":false,"approve":false,"reject":false,"resubmit":false},"Owner":{"name":"Jxxxxx Waxxxx","id":"33XXXXXXXX"},"Modified_Time":"2019-08-13T14:36:09-05:00","$currency_symbol":"$","Created_Time":"2019-08-13T14:36:09-05:00","$review_process":null,"$editable":true,"Deals":{"name":"Dexxxx","id":"33xxxxxxxxxxxxx001"},"Stores":{"name":"Roxxxx Market","id":"330xxxxxxxxxxx133"},"Name":"10297","Last_Activity_Time":null,"Modified_By":{"name":"xxxxx","id":"330xxxxxxxx01"},"$review":null,"$process_flow":false,"Exchange_Rate":1,"Currency":"USD","id":"33xxxxxx005455137","Created_By":{"name":"Joxxx Wxxxx","id":"3xxxxxxxxxxxx1"},"$approved":true}

This is the first store record related to the Deal.
But I need to get ALL the Store IDs that are related to this Deal.
There are many stores.

I need this because I am trying to automate some tasks.
I want it so that when a Deal reaches the on-boarding stage a custom task for every store related to that deal is created.

Any help will be greatly appreciated.
Thanks




                            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 WorkDrive Resources



                                                                    Zoho Campaigns Resources

                                                                      Zoho CRM Resources

                                                                      • CRM Community Learning Series

                                                                        CRM Community Learning Series


                                                                      • Tips

                                                                        Tips

                                                                      • 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