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