Get organizations from Zoho Books
Table of Contents
Overview
This task is used to fetch all the organizations that a user is associated with in Zoho Books.
This task is based on Zoho Books API.
Syntax
<variable> = zoho.books.getOrganizations(<connection>);
Parameter | Data type | Description |
<variable> | KEY-VALUE | Variable to store the response returned by Zoho Books |
<connection>
| TEXT | is the name of the Zoho Books connection Note:
|
Examples
This task fetches all the organizations that a user is part of.
response = zoho.books.getOrganizations("books_connection");
where:
"books_connection"
Sample Response
The following is a sample success response:
{
"code": 0,
"message": "success",
"organizations": [
{
"organization_id": "10234695",
"name": "Zillum",
"contact_name": "John Smith",
"email": "johnsmith@zillum.com",
"is_default_org": false,
"language_code": "en",
"fiscal_year_start_month": 0,
"account_created_date": "2016-02-18",
"time_zone": "PST",
"is_org_active": true,
"currency_id": "460000000000097",
"currency_code": "USD",
"currency_symbol": "$",
"currency_format": "###,##0.00",
"price_precision": 2
},
{...},
{...}
]
}
To get the organization ID or organization name from the response:
orgs = response.get("organizations"); for each org in orgs { info org.get("organization_id"); info org.get("name"); }