n8n-nodes-autotask 0.1.1 → 0.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (60) hide show
  1. package/README.md +256 -251
  2. package/dist/credentials/AutotaskApi.credentials.js +52 -3
  3. package/dist/credentials/AutotaskApi.credentials.js.map +1 -1
  4. package/dist/nodes/Autotask/Autotask.node.js +19 -4
  5. package/dist/nodes/Autotask/Autotask.node.js.map +1 -1
  6. package/dist/nodes/Autotask/constants/entities.js +3 -0
  7. package/dist/nodes/Autotask/constants/entities.js.map +1 -1
  8. package/dist/nodes/Autotask/constants/field.constants.js +1 -0
  9. package/dist/nodes/Autotask/constants/field.constants.js.map +1 -1
  10. package/dist/nodes/Autotask/helpers/cache/init.js +1 -1
  11. package/dist/nodes/Autotask/helpers/cache/init.js.map +1 -1
  12. package/dist/nodes/Autotask/helpers/cache/service.d.ts +7 -1
  13. package/dist/nodes/Autotask/helpers/cache/service.js +179 -20
  14. package/dist/nodes/Autotask/helpers/cache/service.js.map +1 -1
  15. package/dist/nodes/Autotask/helpers/entity/api.js +4 -2
  16. package/dist/nodes/Autotask/helpers/entity/api.js.map +1 -1
  17. package/dist/nodes/Autotask/helpers/http/request.js +2 -2
  18. package/dist/nodes/Autotask/helpers/http/request.js.map +1 -1
  19. package/dist/nodes/Autotask/operations/base/getFieldInfo.operation.d.ts +2 -3
  20. package/dist/nodes/Autotask/operations/base/getFieldInfo.operation.js +8 -17
  21. package/dist/nodes/Autotask/operations/base/getFieldInfo.operation.js.map +1 -1
  22. package/dist/nodes/Autotask/operations/common/entityInfo.description.js +1 -1
  23. package/dist/nodes/Autotask/operations/common/entityInfo.description.js.map +1 -1
  24. package/dist/nodes/Autotask/operations/common/entityInfo.execute.js +1 -1
  25. package/dist/nodes/Autotask/operations/common/entityInfo.execute.js.map +1 -1
  26. package/dist/nodes/Autotask/resources/billingCodes/description.d.ts +2 -0
  27. package/dist/nodes/Autotask/resources/billingCodes/description.js +89 -0
  28. package/dist/nodes/Autotask/resources/billingCodes/description.js.map +1 -0
  29. package/dist/nodes/Autotask/resources/billingCodes/execute.d.ts +2 -0
  30. package/dist/nodes/Autotask/resources/billingCodes/execute.js +65 -0
  31. package/dist/nodes/Autotask/resources/billingCodes/execute.js.map +1 -0
  32. package/dist/nodes/Autotask/resources/billingCodes/index.d.ts +2 -0
  33. package/dist/nodes/Autotask/resources/billingCodes/index.js +19 -0
  34. package/dist/nodes/Autotask/resources/billingCodes/index.js.map +1 -0
  35. package/dist/nodes/Autotask/resources/definitions.js +15 -0
  36. package/dist/nodes/Autotask/resources/definitions.js.map +1 -1
  37. package/dist/nodes/Autotask/resources/resources/description.js +0 -1
  38. package/dist/nodes/Autotask/resources/resources/description.js.map +1 -1
  39. package/dist/nodes/Autotask/resources/ticketHistories/description.d.ts +2 -0
  40. package/dist/nodes/Autotask/resources/ticketHistories/description.js +96 -0
  41. package/dist/nodes/Autotask/resources/ticketHistories/description.js.map +1 -0
  42. package/dist/nodes/Autotask/resources/ticketHistories/execute.d.ts +2 -0
  43. package/dist/nodes/Autotask/resources/ticketHistories/execute.js +117 -0
  44. package/dist/nodes/Autotask/resources/ticketHistories/execute.js.map +1 -0
  45. package/dist/nodes/Autotask/resources/ticketHistories/index.d.ts +2 -0
  46. package/dist/nodes/Autotask/resources/ticketHistories/index.js +8 -0
  47. package/dist/nodes/Autotask/resources/ticketHistories/index.js.map +1 -0
  48. package/dist/nodes/Autotask/resources/ticketNotes/description.d.ts +2 -0
  49. package/dist/nodes/Autotask/resources/ticketNotes/description.js +96 -0
  50. package/dist/nodes/Autotask/resources/ticketNotes/description.js.map +1 -0
  51. package/dist/nodes/Autotask/resources/ticketNotes/execute.d.ts +2 -0
  52. package/dist/nodes/Autotask/resources/ticketNotes/execute.js +77 -0
  53. package/dist/nodes/Autotask/resources/ticketNotes/execute.js.map +1 -0
  54. package/dist/nodes/Autotask/resources/ticketNotes/index.d.ts +2 -0
  55. package/dist/nodes/Autotask/resources/ticketNotes/index.js +19 -0
  56. package/dist/nodes/Autotask/resources/ticketNotes/index.js.map +1 -0
  57. package/dist/nodes/Autotask/types/base/entities.d.ts +1 -0
  58. package/dist/package.json +1 -1
  59. package/dist/tsconfig.tsbuildinfo +1 -1
  60. package/package.json +13 -11
package/README.md CHANGED
@@ -1,251 +1,256 @@
1
- # n8n-nodes-autotask
2
-
3
- ![n8n-nodes-autotask](https://img.shields.io/badge/n8n--nodes--autotask-0.1.1-blue)
4
- ![License](https://img.shields.io/badge/license-MIT-green)
5
-
6
- This is an n8n community node for integrating with Autotask PSA. It provides a comprehensive set of operations to interact with Autotask entities through their REST API.
7
-
8
- ![Overview of n8n-nodes-autotask](./overview.gif)
9
-
10
- [n8n](https://n8n.io/) is a [fair-code licensed](https://docs.n8n.io/reference/license/) workflow automation platform.
11
-
12
- [Installation](#installation)
13
- [Authentication](#authentication)
14
- [Features](#features)
15
- [Usage](#usage)
16
- [Configuration](#configuration)
17
- [Limitations](#limitations)
18
- [Troubleshooting](#troubleshooting)
19
- [Resources](#resources)
20
- [License](#license)
21
-
22
- ## Installation
23
-
24
- Follow these steps to install this node:
25
-
26
- ```bash
27
- # Install with npm
28
- npm install n8n-nodes-autotask
29
-
30
- # Install with pnpm
31
- pnpm install n8n-nodes-autotask
32
- ```
33
-
34
- **Requirements:**
35
- - n8n version 1.0.0 or later
36
- - Node.js version 18.10 or later
37
- - pnpm version 9.1 or later (if using pnpm)
38
-
39
- ## Authentication
40
-
41
- To use this node, you need to have API access to your Autotask instance. Follow these steps to set up authentication:
42
-
43
- 1. In Autotask, go to **Admin > API User Security**
44
- 2. Create or select an API user
45
- 3. Note the API Integration Code, Username, and Secret
46
- 4. In n8n, create a new credential of type **Autotask API**
47
- 5. Enter your API Integration Code, Username, and Secret
48
- 6. Select your Autotask zone
49
- 7. Select your timezone (affects how dates and times are displayed and entered)
50
- 8. Configure caching options as needed (this will cache dynamically fetched field picklists)
51
-
52
- ## Features
53
-
54
- ### Supported Resources
55
-
56
- The node supports the following Autotask resources:
57
-
58
- | Resource | Description |
59
- |----------|-------------|
60
- | Company | Manage organisations in Autotask |
61
- | Company Note | Manage notes attached to companies |
62
- | Contact | Manage contacts associated with companies |
63
- | Product | Manage products in the catalogue |
64
- | Project | Manage projects |
65
- | Project Charge | Manage charges associated with projects |
66
- | Project Note | Manage notes attached to projects |
67
- | Project Phase | Manage phases within projects |
68
- | Project Task | Manage tasks within projects |
69
- | Resource | Manage staff resources |
70
- | Search Filter | Build advanced search filters |
71
- | Ticket | Manage service tickets |
72
- | Time Entry | Manage time entries for billing |
73
-
74
- ### Operations
75
-
76
- For most resources, the following operations are available:
77
-
78
- - **Create**: Add new records
79
- - **Read**: Retrieve a single record by ID
80
- - **Update**: Modify existing records
81
- - **Delete**: Remove records
82
- - **Get Many**: Retrieve multiple records with basic filtering options. This operation allows you to:
83
- - Filter records using simple field conditions (equals)
84
- - Filtering on User Defined Fields (UDFs)
85
- - Automatically paginate through large result sets
86
- - Choose to get all results or limit to a specific number (1-500)
87
- - Set a maximum number of records to return when not retrieving all records
88
- - **Get Many Advanced**: Build complex queries with multiple filter conditions and logical operators. This operation provides:
89
- - Support for complex AND/OR logic in filters
90
- - Nested condition groups for sophisticated queries
91
- - Filtering on User Defined Fields (UDFs)
92
- - Advanced operators like contains, beginsWith, endsWith, exists, notExists
93
- - Support for IN and NOT IN operators with multiple values
94
- - Choose to get all results or limit to a specific number (1-500)
95
- - Set a maximum number of records to return when not retrieving all records
96
- - **Count**: Get the number of matching records
97
- - **Get Entity Info**: Retrieve metadata about the entity
98
- - **Get Field Info**: Retrieve field definitions for the selected entity
99
-
100
- ### Advanced Features
101
-
102
- - **Resource Mapping**: Dynamically map fields based on entity definitions
103
- - **Advanced Filtering**: Build complex queries with multiple conditions
104
- - **Caching**: Improve performance by caching field definitions and picklists
105
- - **Timezone Handling**: Automatic conversion between local time and UTC
106
-
107
- ## Usage
108
-
109
- ### Basic Example: Creating a Ticket
110
-
111
- 1. Add an **Autotask** node to your workflow
112
- 2. Select **Ticket** as the resource
113
- 3. Select **Create** as the operation
114
- 4. Configure the required fields (Title, Status, etc.)
115
- 5. Connect to a trigger or previous node
116
- 6. Execute the workflow
117
-
118
- ### Intermediate Example: Querying Projects with Filters
119
-
120
- 1. Add an **Autotask** node to your workflow
121
- 2. Select **Project** as the resource
122
- 3. Select **Get Many** as the operation
123
- 4. Add filter conditions (e.g., Status equals "Active")
124
- 5. Choose whether to retrieve all results or limit the number:
125
- - Toggle "Get All" to true to retrieve all matching records
126
- - Toggle "Get All" to false and set "Max Records" (1-500) to limit the results
127
- 6. Connect to a trigger or previous node
128
- 7. Execute the workflow
129
-
130
- ### Advanced Example: Complex Filtering with Get Many Advanced
131
-
132
- 1. Add an **Autotask** node to your workflow
133
- 2. Select **Ticket** as the resource
134
- 3. Select **Get Many Advanced** as the operation
135
- 4. Build a complex filter, for example:
136
- ```json
137
- {
138
- "op": "and",
139
- "items": [
140
- {
141
- "field": "Status",
142
- "op": "notEqual",
143
- "value": 5
144
- },
145
- {
146
- "op": "or",
147
- "items": [
148
- {
149
- "field": "Priority",
150
- "op": "Equal",
151
- "value": 6
152
- },
153
- {
154
- "field": "DueDateTime",
155
- "op": "lessThan",
156
- "value": "{{ $now.plus(3, 'days').toLocal()}}"
157
- }
158
- ]
159
- }
160
- ]
161
- }
162
- ```
163
- 5. Choose whether to retrieve all results or limit the number:
164
- - Toggle "Get All" to true to retrieve all matching records
165
- - Toggle "Get All" to false and set "Max Records" (1-500) to limit the results
166
- 6. Execute the workflow to retrieve tickets that are not complete AND either have priority 6 OR are due within the next 3 days
167
-
168
- ### Advanced Example: Working with Parent-Child Relationships
169
-
170
- Many Autotask entities have parent-child relationships (e.g., Companies and Contacts). To work with these:
171
-
172
- 1. First, retrieve or create the parent entity
173
- 2. Use the parent entity's ID in the child entity operations
174
- 3. For example, to create a Contact for a Company:
175
- - First node: Get or create the Company
176
- - Second node: Create a Contact with the Company ID
177
-
178
- ## Configuration
179
-
180
- ### Caching Options
181
-
182
- The node includes a caching system to improve performance by reducing API calls:
183
-
184
- - **Enable Field Caching**: Toggle caching on/off
185
- - **Cache TTL**: How long to cache field values (in seconds)
186
- - **Cache Entity Info**: Whether to cache entity information and field definitions
187
- - **Entity Info TTL**: How long to cache entity information
188
- - **Cache Reference Fields**: Whether to cache reference field values
189
- - **Reference Fields TTL**: How long to cache reference field values
190
- - **Cache Picklists**: Whether to cache picklist values
191
- - **Picklists TTL**: How long to cache picklist values
192
-
193
- ### Timezone Handling
194
-
195
- All dates and times in the Autotask API are in UTC. The node automatically converts between your selected timezone and UTC:
196
-
197
- - When creating or updating records, local times are converted to UTC
198
- - When retrieving records, UTC times are converted to your local timezone
199
- - The timezone is configured in the credentials
200
-
201
- ## Limitations
202
-
203
- ### API Limits
204
-
205
- - Maximum 500 records per page in query results
206
- - Maximum 50 pages per query operation
207
- - Maximum 500 OR conditions in filters
208
- - Maximum 1 User Defined Field per query
209
-
210
- ### Entity-Specific Limitations
211
-
212
- - Some entities may not support all operations (e.g., Project Phases cannot be deleted)
213
- - Parent-child relationships require specific handling
214
- - Some fields may be read-only or have specific validation rules
215
-
216
- ### Performance Considerations
217
-
218
- - Large queries may be slow and should be optimised with filters
219
- - Complex workflows with many API calls may hit rate limits
220
-
221
- ## Troubleshooting
222
-
223
- ### Common Issues
224
-
225
- - **Authentication Errors**: Verify your API credentials and ensure the API user has appropriate permissions
226
- - **Field Validation Errors**: Check field requirements in the Autotask API documentation
227
- - **Rate Limiting**: If you encounter rate limiting, reduce the frequency of API calls or implement retry logic
228
-
229
- ### Reporting Bugs
230
-
231
- If you encounter any bugs or issues with this integration:
232
-
233
- 1. Check the [GitHub Issues](https://github.com/msoukhomlinov/n8n-nodes-autotask/issues) to see if the problem has already been reported
234
- 2. If not, please submit a new issue with:
235
- - A clear description of the problem
236
- - Steps to reproduce the issue
237
- - Expected vs actual behaviour
238
- - Your environment details (n8n version, Node.js version)
239
- - Any relevant error messages or screenshots
240
-
241
- Bug reports should be submitted via GitHub at: https://github.com/msoukhomlinov/n8n-nodes-autotask/issues
242
-
243
- ## Resources
244
-
245
- - [Autotask API Documentation](https://ww6.autotask.net/help/developerhelp/Content/APIs/REST/REST_API_Home.htm)
246
- - [n8n Documentation](https://docs.n8n.io/)
247
- - [GitHub Repository](https://github.com/msoukhomlinov/n8n-nodes-autotask)
248
-
249
- ## License
250
-
251
- [MIT](LICENSE)
1
+ # n8n-nodes-autotask
2
+
3
+ ![n8n-nodes-autotask](https://img.shields.io/badge/n8n--nodes--autotask-0.2.0-blue)
4
+ ![License](https://img.shields.io/badge/license-MIT-green)
5
+
6
+ This is an n8n community node for integrating with Autotask PSA. It provides a comprehensive set of operations to interact with Autotask entities through their REST API.
7
+
8
+ ![Overview of n8n-nodes-autotask](./overview.gif)
9
+
10
+ [n8n](https://n8n.io/) is a [fair-code licensed](https://docs.n8n.io/reference/license/) workflow automation platform.
11
+
12
+ [Installation](#installation)
13
+ [Authentication](#authentication)
14
+ [Features](#features)
15
+ [Usage](#usage)
16
+ [Configuration](#configuration)
17
+ [Limitations](#limitations)
18
+ [Troubleshooting](#troubleshooting)
19
+ [Resources](#resources)
20
+ [License](#license)
21
+
22
+ ## Installation
23
+
24
+ Follow these steps to install this node:
25
+
26
+ ```bash
27
+ # Install with npm
28
+ npm install n8n-nodes-autotask
29
+
30
+ # Install with pnpm
31
+ pnpm install n8n-nodes-autotask
32
+ ```
33
+
34
+ **Requirements:**
35
+ - n8n version 1.0.0 or later
36
+ - Node.js version 18.10 or later
37
+ - pnpm version 9.1 or later (if using pnpm)
38
+
39
+ ## Authentication
40
+
41
+ To use this node, you need to have API access to your Autotask instance. Follow these steps to set up authentication:
42
+
43
+ 1. In Autotask, go to **Admin > API User Security**
44
+ 2. Create or select an API user
45
+ 3. Note the API Integration Code, Username, and Secret
46
+ 4. In n8n, create a new credential of type **Autotask API**
47
+ 5. Enter your API Integration Code, Username, and Secret
48
+ 6. Select your Autotask zone
49
+ 7. Select your timezone (affects how dates and times are displayed and entered)
50
+ 8. Configure caching options as needed (this will cache dynamically fetched field picklists)
51
+
52
+ ## Features
53
+
54
+ ### Supported Resources
55
+
56
+ The node supports the following Autotask resources:
57
+
58
+ | Resource | Description |
59
+ |----------|-------------|
60
+ | Billing Code | Manage billing codes for time entries and charges |
61
+ | Company | Manage organisations in Autotask |
62
+ | Company Note | Manage notes attached to companies |
63
+ | Contact | Manage contacts associated with companies |
64
+ | Product | Manage products in the catalogue |
65
+ | Project | Manage projects |
66
+ | Project Charge | Manage charges associated with projects |
67
+ | Project Note | Manage notes attached to projects |
68
+ | Project Phase | Manage phases within projects |
69
+ | Project Task | Manage tasks within projects |
70
+ | Resource | Manage staff resources |
71
+ | Search Filter | Build advanced search filters |
72
+ | Ticket | Manage service tickets |
73
+ | Ticket History | View historical changes to tickets |
74
+ | Ticket Note | Manage notes attached to tickets |
75
+ | Time Entry | Manage time entries for billing |
76
+
77
+ ### Operations
78
+
79
+ For most resources, the following operations are available:
80
+
81
+ - **Create**: Add new records
82
+ - **Read**: Retrieve a single record by ID
83
+ - **Update**: Modify existing records
84
+ - **Delete**: Remove records
85
+ - **Get Many**: Retrieve multiple records with basic filtering options. This operation allows you to:
86
+ - Filter records using simple field conditions (equals)
87
+ - Filtering on User Defined Fields (UDFs)
88
+ - Automatically paginate through large result sets
89
+ - Choose to get all results or limit to a specific number (1-500)
90
+ - Set a maximum number of records to return when not retrieving all records
91
+ - **Get Many Advanced**: Build complex queries with multiple filter conditions and logical operators. This operation provides:
92
+ - Support for complex AND/OR logic in filters
93
+ - Nested condition groups for sophisticated queries
94
+ - Filtering on User Defined Fields (UDFs)
95
+ - Advanced operators like contains, beginsWith, endsWith, exists, notExists
96
+ - Support for IN and NOT IN operators with multiple values
97
+ - Choose to get all results or limit to a specific number (1-500)
98
+ - Set a maximum number of records to return when not retrieving all records
99
+ - **Count**: Get the number of matching records
100
+ - **Get Entity Info**: Retrieve metadata about the entity
101
+ - **Get Field Info**: Retrieve field definitions for the selected entity
102
+
103
+ ### Advanced Features
104
+
105
+ - **Resource Mapping**: Dynamically map fields based on entity definitions
106
+ - **Advanced Filtering**: Build complex queries with multiple conditions
107
+ - **File-based Caching**: Improved performance with persistent caching that can be shared between workflows and runs
108
+ - **Timezone Handling**: Automatic conversion between local time and UTC
109
+
110
+ ## Usage
111
+
112
+ ### Basic Example: Creating a Ticket
113
+
114
+ 1. Add an **Autotask** node to your workflow
115
+ 2. Select **Ticket** as the resource
116
+ 3. Select **Create** as the operation
117
+ 4. Configure the required fields (Title, Status, etc.)
118
+ 5. Connect to a trigger or previous node
119
+ 6. Execute the workflow
120
+
121
+ ### Intermediate Example: Querying Projects with Filters
122
+
123
+ 1. Add an **Autotask** node to your workflow
124
+ 2. Select **Project** as the resource
125
+ 3. Select **Get Many** as the operation
126
+ 4. Add filter conditions (e.g., Status equals "Active")
127
+ 5. Choose whether to retrieve all results or limit the number:
128
+ - Toggle "Get All" to true to retrieve all matching records
129
+ - Toggle "Get All" to false and set "Max Records" (1-500) to limit the results
130
+ 6. Connect to a trigger or previous node
131
+ 7. Execute the workflow
132
+
133
+ ### Advanced Example: Complex Filtering with Get Many Advanced
134
+
135
+ 1. Add an **Autotask** node to your workflow
136
+ 2. Select **Ticket** as the resource
137
+ 3. Select **Get Many Advanced** as the operation
138
+ 4. Build a complex filter, for example:
139
+ ```json
140
+ {
141
+ "op": "and",
142
+ "items": [
143
+ {
144
+ "field": "Status",
145
+ "op": "notEqual",
146
+ "value": 5
147
+ },
148
+ {
149
+ "op": "or",
150
+ "items": [
151
+ {
152
+ "field": "Priority",
153
+ "op": "Equal",
154
+ "value": 6
155
+ },
156
+ {
157
+ "field": "DueDateTime",
158
+ "op": "lessThan",
159
+ "value": "{{ $now.plus(3, 'days').toLocal()}}"
160
+ }
161
+ ]
162
+ }
163
+ ]
164
+ }
165
+ ```
166
+ 5. Choose whether to retrieve all results or limit the number:
167
+ - Toggle "Get All" to true to retrieve all matching records
168
+ - Toggle "Get All" to false and set "Max Records" (1-500) to limit the results
169
+ 6. Execute the workflow to retrieve tickets that are not complete AND either have priority 6 OR are due within the next 3 days
170
+
171
+ ### Advanced Example: Working with Parent-Child Relationships
172
+
173
+ Many Autotask entities have parent-child relationships (e.g., Companies and Contacts). To work with these:
174
+
175
+ 1. First, retrieve or create the parent entity
176
+ 2. Use the parent entity's ID in the child entity operations
177
+ 3. For example, to create a Contact for a Company:
178
+ - First node: Get or create the Company
179
+ - Second node: Create a Contact with the Company ID
180
+
181
+ ## Configuration
182
+
183
+ ### Caching Options
184
+
185
+ The node includes an enhanced file-based caching system to improve performance by reducing API calls:
186
+
187
+ - **Enable Field Caching**: Toggle caching on/off
188
+ - **Cache TTL**: How long to cache field values (in seconds)
189
+ - **Cache Entity Info**: Whether to cache entity information and field definitions
190
+ - **Entity Info TTL**: How long to cache entity information
191
+ - **Cache Reference Fields**: Whether to cache reference field values
192
+ - **Reference Fields TTL**: How long to cache reference field values
193
+ - **Cache Picklists**: Whether to cache picklist values
194
+ - **Picklists TTL**: How long to cache picklist values
195
+ - **File-based Cache**: Cache is stored in files that can be shared between workflows and runs
196
+ - **Cache Directory**: Optional path to a directory where cache files will be stored
197
+
198
+ ### Timezone Handling
199
+
200
+ All dates and times in the Autotask API are in UTC. The node automatically converts between your selected timezone and UTC:
201
+
202
+ - When creating or updating records, local times are converted to UTC
203
+ - When retrieving records, UTC times are converted to your local timezone
204
+ - The timezone is configured in the credentials
205
+
206
+ ## Limitations
207
+
208
+ ### API Limits
209
+
210
+ - Maximum 500 records per page in query results
211
+ - Maximum 50 pages per query operation
212
+ - Maximum 500 OR conditions in filters
213
+ - Maximum 1 User Defined Field per query
214
+
215
+ ### Entity-Specific Limitations
216
+
217
+ - Some entities may not support all operations (e.g., Project Phases cannot be deleted)
218
+ - Parent-child relationships require specific handling
219
+ - Some fields may be read-only or have specific validation rules
220
+
221
+ ### Performance Considerations
222
+
223
+ - Large queries may be slow and should be optimised with filters
224
+ - Complex workflows with many API calls may hit rate limits
225
+
226
+ ## Troubleshooting
227
+
228
+ ### Common Issues
229
+
230
+ - **Authentication Errors**: Verify your API credentials and ensure the API user has appropriate permissions
231
+ - **Field Validation Errors**: Check field requirements in the Autotask API documentation
232
+ - **Rate Limiting**: If you encounter rate limiting, reduce the frequency of API calls or implement retry logic
233
+
234
+ ### Reporting Bugs
235
+
236
+ If you encounter any bugs or issues with this integration:
237
+
238
+ 1. Check the [GitHub Issues](https://github.com/msoukhomlinov/n8n-nodes-autotask/issues) to see if the problem has already been reported
239
+ 2. If not, please submit a new issue with:
240
+ - A clear description of the problem
241
+ - Steps to reproduce the issue
242
+ - Expected vs actual behaviour
243
+ - Your environment details (n8n version, Node.js version)
244
+ - Any relevant error messages or screenshots
245
+
246
+ Bug reports should be submitted via GitHub at: https://github.com/msoukhomlinov/n8n-nodes-autotask/issues
247
+
248
+ ## Resources
249
+
250
+ - [Autotask API Documentation](https://ww6.autotask.net/help/developerhelp/Content/APIs/REST/REST_API_Home.htm)
251
+ - [n8n Documentation](https://docs.n8n.io/)
252
+ - [GitHub Repository](https://github.com/msoukhomlinov/n8n-nodes-autotask)
253
+
254
+ ## License
255
+
256
+ [MIT](LICENSE)
@@ -87,6 +87,10 @@ class AutotaskApi {
87
87
  name: 'America West 3',
88
88
  value: 'https://webservices24.autotask.net/atservicesrest',
89
89
  },
90
+ {
91
+ name: 'America West 4',
92
+ value: 'https://webservices25.autotask.net/atservicesrest',
93
+ },
90
94
  {
91
95
  name: 'UK',
92
96
  value: 'https://webservices4.autotask.net/atservicesrest',
@@ -95,10 +99,18 @@ class AutotaskApi {
95
99
  name: 'UK2',
96
100
  value: 'https://webservices16.autotask.net/atservicesrest',
97
101
  },
102
+ {
103
+ name: 'UK3',
104
+ value: 'https://webservices28.autotask.net/atservicesrest',
105
+ },
98
106
  {
99
107
  name: 'Australia / New Zealand',
100
108
  value: 'https://webservices6.autotask.net/atservicesrest',
101
109
  },
110
+ {
111
+ name: 'Australia 2',
112
+ value: 'https://webservices26.autotask.net/atservicesrest',
113
+ },
102
114
  {
103
115
  name: 'Pre-Release (Deutsch)',
104
116
  value: 'https://prde.autotask.net/atservicesrest',
@@ -121,12 +133,25 @@ class AutotaskApi {
121
133
  },
122
134
  {
123
135
  name: 'Other (Use Zone Information API)',
124
- value: 'https://webservices.autotask.net/atservicesrest',
136
+ value: 'other',
125
137
  },
126
138
  ],
127
139
  default: 'https://webservices6.autotask.net/atservicesrest',
128
140
  required: true,
129
- description: 'Select your Autotask instance zone. If unsure, use "Other" which will automatically detect your zone.',
141
+ description: 'Select your Autotask instance zone. If unsure, use "Other" which will automatically detect your zone. Zone list sourced from: https://ww6.autotask.net/help/developerhelp/Content/APIs/General/API_Zones.htm',
142
+ },
143
+ {
144
+ displayName: 'Custom Zone URL',
145
+ name: 'customZoneUrl',
146
+ type: 'string',
147
+ default: 'https://webservices.autotask.net/atservicesrest',
148
+ required: true,
149
+ displayOptions: {
150
+ show: {
151
+ zone: ['other'],
152
+ },
153
+ },
154
+ description: 'Enter your custom Autotask zone URL. You can find your zone URL using the Zone Information API or from your Autotask administrator.',
130
155
  },
131
156
  {
132
157
  displayName: 'Timezone',
@@ -232,6 +257,30 @@ class AutotaskApi {
232
257
  },
233
258
  },
234
259
  },
260
+ {
261
+ displayName: 'Cache Directory',
262
+ name: 'cacheDirectory',
263
+ type: 'string',
264
+ default: './cache/autotask',
265
+ description: 'Directory to store cache files (relative or absolute path)',
266
+ displayOptions: {
267
+ show: {
268
+ cacheEnabled: [true],
269
+ },
270
+ },
271
+ },
272
+ {
273
+ displayName: 'Maximum Cache Size (MB)',
274
+ name: 'cacheMaxSize',
275
+ type: 'number',
276
+ default: 100,
277
+ description: 'Maximum size of the cache in megabytes (0 for unlimited)',
278
+ displayOptions: {
279
+ show: {
280
+ cacheEnabled: [true],
281
+ },
282
+ },
283
+ },
235
284
  ];
236
285
  this.authenticate = {
237
286
  type: 'generic',
@@ -246,7 +295,7 @@ class AutotaskApi {
246
295
  };
247
296
  this.test = {
248
297
  request: {
249
- baseURL: '={{$credentials.zone}}/V1.0',
298
+ baseURL: '={{$credentials.zone === "other" ? $credentials.customZoneUrl : $credentials.zone}}/V1.0',
250
299
  url: '/Companies/entityInformation',
251
300
  method: 'GET',
252
301
  headers: {
@@ -1 +1 @@
1
- {"version":3,"file":"AutotaskApi.credentials.js","sourceRoot":"","sources":["../../credentials/AutotaskApi.credentials.ts"],"names":[],"mappings":";;;;;;AAOA,sEAAqC;AACrC,2DAA+D;AAE/D,MAAa,WAAW;IAAxB;QACC,SAAI,GAAG,aAAa,CAAC;QACrB,gBAAW,GAAG,cAAc,CAAC;QAC7B,qBAAgB,GAAG,iFAAiF,CAAC;QACrG,eAAU,GAAsB;YAC/B;gBACC,WAAW,EAAE,sBAAsB;gBACnC,IAAI,EAAE,oBAAoB;gBAC1B,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE;oBACZ,QAAQ,EAAE,IAAI;iBACd;gBACD,OAAO,EAAE,EAAE;gBACX,QAAQ,EAAE,IAAI;gBACd,WAAW,EAAE,iGAAiG;aAC9G;YACD;gBACC,WAAW,EAAE,UAAU;gBACvB,IAAI,EAAE,UAAU;gBAChB,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,EAAE;gBACX,QAAQ,EAAE,IAAI;gBACd,WAAW,EAAE,kEAAkE;aAC/E;YACD;gBACC,WAAW,EAAE,QAAQ;gBACrB,IAAI,EAAE,QAAQ;gBACd,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE;oBACZ,QAAQ,EAAE,IAAI;iBACd;gBACD,OAAO,EAAE,EAAE;gBACX,QAAQ,EAAE,IAAI;gBACd,WAAW,EAAE,8DAA8D;aAC3E;YACD;gBACC,WAAW,EAAE,MAAM;gBACnB,IAAI,EAAE,MAAM;gBACZ,IAAI,EAAE,SAAS;gBACf,OAAO,EAAE;oBACR;wBACC,IAAI,EAAE,aAAa;wBACnB,KAAK,EAAE,kDAAkD;qBACzD;oBACD;wBACC,IAAI,EAAE,kBAAkB;wBACxB,KAAK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SACD,CAAC;QAEF,SAAI,GAA2B;YAC9B,OAAO,EAAE;gBACR,OAAO,EAAE,6BAA6B;gBACtC,GAAG,EAAE,8BAA8B;gBACnC,MAAM,EAAE,KAAK;gBACb,OAAO,EAAE;oBACR,kBAAkB,EAAE,sCAAsC;oBAC1D,QAAQ,EAAE,4BAA4B;oBACtC,MAAM,EAAE,0BAA0B;oBAClC,cAAc,EAAE,kBAAkB;iBAClB;aACjB;SACD,CAAC;IAOH,CAAC;IALA,WAAW;QAGV,oBAAY,CAAC,iBAAiB,EAAE,CAAC;IAClC,CAAC;CACD;AAnQD,kCAmQC"}
1
+ {"version":3,"file":"AutotaskApi.credentials.js","sourceRoot":"","sources":["../../credentials/AutotaskApi.credentials.ts"],"names":[],"mappings":";;;;;;AAOA,sEAAqC;AACrC,2DAA+D;AAE/D,MAAa,WAAW;IAAxB;QACC,SAAI,GAAG,aAAa,CAAC;QACrB,gBAAW,GAAG,cAAc,CAAC;QAC7B,qBAAgB,GAAG,iFAAiF,CAAC;QACrG,eAAU,GAAsB;YAC/B;gBACC,WAAW,EAAE,sBAAsB;gBACnC,IAAI,EAAE,oBAAoB;gBAC1B,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE;oBACZ,QAAQ,EAAE,IAAI;iBACd;gBACD,OAAO,EAAE,EAAE;gBACX,QAAQ,EAAE,IAAI;gBACd,WAAW,EAAE,iGAAiG;aAC9G;YACD;gBACC,WAAW,EAAE,UAAU;gBACvB,IAAI,EAAE,UAAU;gBAChB,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,EAAE;gBACX,QAAQ,EAAE,IAAI;gBACd,WAAW,EAAE,kEAAkE;aAC/E;YACD;gBACC,WAAW,EAAE,QAAQ;gBACrB,IAAI,EAAE,QAAQ;gBACd,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE;oBACZ,QAAQ,EAAE,IAAI;iBACd;gBACD,OAAO,EAAE,EAAE;gBACX,QAAQ,EAAE,IAAI;gBACd,WAAW,EAA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