Choose where you’d like to start

Get Workspaces from Zoho Bookings

Overview

This task is used to fetch all the workspaces from your Zoho Bookings account.

This integration task is based on the Zoho Bookings API - Fetch Workspaces.

Syntax

<response> = zoho.bookings.getWorkspaces(<connection>);
ParamsData typeDescription

<response> 

KEY-VALUE

The variable which will hold the returned response.

<connection>

TEXT

The name of the connection.

Note:

  • In view of stopping new authtoken generation, a Zoho OAuth connection with appropriate scopes is mandatory for new integration tasks (created after the deadline specified in the post) to work as expected. Existing integration tasks will continue to work with or without the connections parameter unless the authtoken is manually deleted from accounts.
  • Add relevant scopes while creating the connection.
  • Refer to this post for the list of Zoho services that support the connections page.
  • Learn more about connections

Example

The following script fetches all your workspaces:

response =zoho.bookings.getWorkspaces("bookings_oauth_connection");

where:

response
The variable which returns the returned response in KEY-VALUE format.
"bookings_oauth_connection"
The TEXT name of the connection.

Response Format

Success Response

  • The success response returned will be returned in the following format:
     {
     "response": {
     "returnvalue": {
     "data": [
     {
     "name": "Soft skills",
     "id": "3883XXXXXXXXXXX6010"
     },
     {
     "name": "Computer courses",
     "id": "3883XXXXXXXXXXX6106"
     }
     ]
     },
     "status": "success"
     }
     }

To get the IDs of the workspaces, use the following script:

 for each var in <response_variable>
 {
 list_var = var.get("returnvalue").get("data");
 for each var1 in list_var
 {
 info  var1 .get("id");
 }
 }

Related Links

Get Started Now

Execute