Get department details by department name - Zoho Webinar
Table of Contents
Note: This task is applicable to all services except Zoho Creator.
Overview:
This task is used to fetch department details by department name in Zoho Webinar.
This task is based on Zoho Webinar API: Department details by Department Name
Syntax:
<variable> = zoho.webinar.getDepartmentByName(<portal_id>, <department_name>, <connection>);
where:
| Params | Data type | Description |
| <variable> | KEY-VALUE | Specifies the variable that will hold the response returned by Zoho Webinar. |
| <portal_Id> | NUMBER | Specifies the unique portal identifier where the webinar will be created. Note: Portal_Id can be fetched in the following ways.
|
| <department_name> | TEXT | Specifies the name of the department to be fetched. |
| <connection> | TEXT | Specifies the link name of the Zoho Webinar connection. Required scope for this connection: ZohoWebinar.department.READ |
Example: Fetching department details by department name.
response = zoho.webinar.getDepartmentByName(86367739,"WEBINAR","webinar1");
where:
responseThe KEY-VALUE returned by Zoho Webinar.
86367739The NUMBER representing the portal identifier.
"WEBINAR"The TEXT representing the department name.
"webinar1"The TEXT representing the connection name.
Sample response
Success response
{
"representation": {
"departmentId": "645551000000025019"
}
}
"representation": {
"departmentId": "645551000000025019"
}
}
Failure response
{
"error": {
"code": 1032,
"message": "This department name is not available"
}
}
"error": {
"code": 1032,
"message": "This department name is not available"
}
}