How can I have a custom function return a list of variables?

How can I have a custom function return a list of variables?

Hi,

Still learning Deluge and Zoho Flow. Also, I'm not a programmer. Be gentle. ;-)

I would like use the return of a custom function to offer a dropdown when you catch a webhook. Is that possible?

drop down of webhook


A bit of context. I am trying to return the Zoho Account after searching for a specific field.

  1. list find_zaccount_from_iugu_subscription_id(string iuguSubscriptionId)
  2. {
  3. criteria = "(Iugu_ID:equals:" + iuguSubscriptionId + ")";
  4. response = zoho.crm.searchRecords("Accounts",criteria);
  5. //pick first record
  6. response = response.get(0);
  7. return response;
  8. }
Do I have to convert the response to a map? A JSON string? A XML? Something else?