autotask_get_company_site_configuration
Retrieve company site configuration records by providing a company ID. Use this to discover available fields for further queries.
Instructions
Get company site configuration records. Call first to discover available fields.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| companyId | Yes | The company ID whose site configuration records should be returned |
Implementation Reference
- Schema definition for autotask_get_company_site_configuration tool, requiring a companyId parameter.
name: 'autotask_get_company_site_configuration', description: 'Get company site configuration records. Call first to discover available fields.', inputSchema: { type: 'object', properties: { companyId: { type: 'number', description: 'The company ID whose site configuration records should be returned' } }, required: ['companyId'] } - src/handlers/tool.definitions.ts:3038-3041 (registration)Tool registered in the 'companies' category of TOOL_CATEGORIES.
companies: { description: 'Search, create, and update companies', tools: ['autotask_search_companies', 'autotask_create_company', 'autotask_update_company', 'autotask_get_company_site_configuration', 'autotask_update_company_site_configuration'] }, - src/handlers/tool.handler.ts:787-789 (handler)Dispatch handler that calls autotaskService.getCompanySiteConfigurations(a.companyId) and returns the result.
['autotask_get_company_site_configuration', async (a) => { const r = await s.getCompanySiteConfigurations(a.companyId); return { result: r, message: `Found ${r.length} site configuration record(s) for company ${a.companyId}` }; - Service method getCompanySiteConfigurations that queries Autotask CompanySiteConfigurations entity filtered by companyID.
async getCompanySiteConfigurations(companyId: number): Promise<any[]> { const http = await this.ensureClient(); try { this.logger.debug(`Getting company site configurations for company ID: ${companyId}`); return await http.query<any>( 'CompanySiteConfigurations', [{ op: 'eq', field: 'companyID', value: companyId }], { maxRecords: 100 } ); } catch (error) { this.logger.error(`Failed to get company site configurations for company ${companyId}:`, error); throw error; } }