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

      • Zoho Billing will discontinue support for older browser versions soon

        Hello users, Starting from May 15, 2024, Zoho Billing will no longer support the following browser versions: Browsers Version Restrictions Firefox Browser Versions older than 100 Google Chrome Versions older than 100 Microsoft Edge Versions older than
      • 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