Actions43
- Earning Types Actions
- Email Templates Actions
- Employee Types Actions
- Employees Actions
- Entities Actions
- Classes Actions
- Contacts Actions
- Department Groups Actions
- Exchange Rate Lines Actions
- Exchange Rate Types Actions
- Exchange Rates Actions
- Attachment Folders Actions
- Get Next Value Actions
- Location Groups Actions
- Locations Actions
- Roles Actions
- User Groups Actions
- Users Actions
- Affiliate Entity Groups Actions
- Attachments Actions
- Departments Actions
- Document Sequences Actions
Overview
This node is designed to create a new department within a company's configuration in the Sage Intacct system via the AvantGuard API. It allows users to define key attributes of a department such as its unique identifier, name, and hierarchical relationships. This node is beneficial for automating organizational setup or updates in financial or ERP systems where departmental structures are critical.
Practical examples:
- Automatically adding a new software development department when onboarding a new team.
- Creating hierarchical department structures by specifying parent departments.
- Assigning supervisors to departments for routing approvals or workflows.
Properties
| Name | Meaning |
|---|---|
| Id | Unique identifier for the department (string). Required. |
| Name | Department name (string). Required. |
| Additional Body Fields | Optional additional fields that can be included in the department creation request: - Key: System-assigned unique key for the department (string). - Number: Department number (string). - Report Title: Title displayed in reports (string). - Parent: JSON object representing the parent department for hierarchy. - Supervisor: JSON object referencing the employee who supervises the department. - Status: Status of the department with options: • Active • Active Non Posting • Inactive - Audit: JSON object containing audit information like created/modified timestamps and user IDs. - Href: URL endpoint for the department (string). |
Output
The node outputs JSON data representing the newly created department object as returned by the API. This typically includes all properties sent in the request along with any additional metadata or identifiers assigned by the backend system.
If binary data were involved (not indicated here), it would represent attachments or files related to the department, but this node focuses solely on JSON data.
Dependencies
- Requires an API key credential for authenticating with the AvantGuard Sage Intacct Company Configuration API.
- The base URL for the API must be configured in the node credentials.
- The node uses HTTP headers to accept and send JSON content.
- No other external dependencies are indicated.
Troubleshooting
Common issues:
- Missing required fields (
IdorName) will likely cause validation errors. - Incorrect JSON formatting in fields like
Parent,Supervisor, orAuditmay cause parsing errors. - Invalid status values outside the provided options will be rejected.
- Network or authentication failures if API credentials or base URL are misconfigured.
- Missing required fields (
Error messages and resolutions:
- "Missing required property" — Ensure
IdandNameare provided. - "Invalid JSON format" — Verify JSON fields are correctly formatted and parsable.
- "Unauthorized" or "Authentication failed" — Check API key credentials and permissions.
- "Resource not found" — Confirm that referenced parent or supervisor objects exist.
- "Bad Request" — Review all field values for correctness and adherence to expected types.
- "Missing required property" — Ensure
Links and References
- Sage Intacct API Documentation
- AvantGuard API Reference (hypothetical link based on vendor name)
- n8n Documentation on Creating Custom Nodes