Retrieve Zoho Subscription ID following getList function

Retrieve Zoho Subscription ID following getList function

Hello, I am creating a custom function which will update a customer's Zoho Subscription as inactive when their Zoho CRM account is made inactive.

I am using the subscriptions getList function as follows in order to retrieve all subscriptions:

allSubscriptions = zoho.subscriptions.getList("Customers", "694960175");

My next step is to find the subscription ID which matches the Account that was made inactive. Based on instructions at this article: https://www.zoho.com/deluge/help/subscription/fetch-records.html
From the article:
To fetch the record IDs from the response, use the following snippet:
var = <response_variable>.get("<module_name>"); 
// example for <module_name> is customers
for each var1 in var
{
info var1.toMap().get("<module_name>_id");
// example for <module_name>_id is customer_id
}

However, I'm getting null returned. Can you help me understand how to retrieve a specific subscription field value?

    • Sticky Posts

    • Introducing Developer Space in Zoho Subscriptions

      Hello devs! At Zoho Subscriptions, we're constantly looking for ways to empower the developer community. Our goal is to provide you with the tools you need to integrate Zoho Subscriptions with your other platforms, and we also want to make it easy to

      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


                                                      Zoho Show Resources


                                                        Zoho Writer Writer

                                                        Get Started. Write Away!

                                                        Writer is a powerful online word processor, designed for collaborative work.

                                                                  有料プランをご利用の方