Actions524
- AI Helper Actions
- Tool Actions
- API Threshold Actions
- Appointment Actions
- Billing Code Actions
- Billing Items Actions
- Change Request Link Actions
- Checklist Library Actions
- Checklist Library Item Actions
- Classification Icon Actions
- Company Actions
- Company Alert Actions
- Company Location Actions
- Company Note Actions
- Company Webhook Actions
- Company Site Configuration Actions
- Configuration Item Actions
- Configuration Item Billing Product Association Actions
- Configuration Item Category Actions
- Configuration Item Category UDF Association Actions
- Configuration Item DNS Record Actions
- Configuration Item Note Actions
- Configuration Item Related Item Actions
- Configuration Item SSL Subject Alternative Name Actions
- Configuration Item Type Actions
- Configuration Item Webhook Actions
- Contact Actions
- Contact Webhook Actions
- Contact Groups Actions
- Contact Group Contacts Actions
- Contract Actions
- Contract Block Actions
- Contract Block Hour Factor Actions
- Contract Billing Rule Actions
- Contract Charge Actions
- Contract Exclusion Billing Code Actions
- Contract Exclusion Role Actions
- Contract Exclusion Sets Actions
- Contract Exclusion Set Excluded Role Actions
- Contract Exclusion Set Excluded Work Type Actions
- Contract Milestone Actions
- Contract Note Actions
- Contract Rate Actions
- Contract Role Costs Actions
- Contract Retainer Actions
- Contract Service Actions
- Contract Service Adjustment Actions
- Contract Service Bundle Adjustment Actions
- Contract Service Bundle Actions
- Contract Service Bundle Unit Actions
- Contract Ticket Purchase Actions
- Department Actions
- Project Phase Actions
- Quote Item Actions
- Quote Location Actions
- Quote Template Actions
- Resource Actions
- Resource Role Actions
- Resource Role Queue Actions
- Search Filter Actions
- Service Actions
- Service Call Actions
- Subscription Actions
- Subscription Period Actions
- Ticket Category Actions
- Ticket Category Field Default Actions
- Ticket History Actions
- Ticket Note Actions
Contract Charge → Create If Not Exists
AI-generatedOverview
The node operation 'Create If Not Exists' for the 'Contract Charge' resource in the Autotask integration allows users to create a new contract charge entry only if a duplicate does not already exist based on specified deduplication fields. This operation is useful in scenarios where you want to avoid creating duplicate contract charges in the system, such as when syncing data from external sources or automating contract management workflows. Users can specify fields to detect duplicates and optionally update existing entries if differences are found, or throw an error on duplicates.
Use Case Examples
- Automatically create a contract charge in Autotask only if it doesn't already exist to prevent duplicate billing entries.
- Use deduplication fields to identify existing contract charges and update them if necessary, ensuring data consistency.
- Throw an error when a duplicate contract charge is detected to enforce strict data integrity rules.
Properties
| Name | Meaning |
|---|---|
| Error on Duplicate | Whether to throw an error when a duplicate contract charge is found instead of returning a soft 'skipped' outcome. |
| Dedup Fields Names or IDs | Fields used for duplicate detection. If empty, deduplication is skipped and the contract charge is always created. |
| Update Fields Names or IDs | Fields to compare against the duplicate. If values differ, the duplicate will be updated. This is ignored when 'Error on Duplicate' is enabled. |
| Fields | Mapping of fields to set on the contract charge resource when creating or updating. |
Output
JSON
id- The unique identifier of the created or updated contract charge.status- The status of the operation, e.g., 'created', 'updated', or 'skipped'.data- The full data object of the contract charge after the operation.
Dependencies
- An API key credential for Autotask PSA REST API
Troubleshooting
- If duplicates are detected but 'Error on Duplicate' is false, the node will skip creation and return a 'skipped' status. To enforce strict duplicate prevention, enable 'Error on Duplicate'.
- If the deduplication fields are not set correctly or left empty, duplicates may not be detected, leading to multiple contract charges being created.
- Errors related to API authentication or permissions may occur if the Autotask API credentials are invalid or lack necessary scopes. Verify credentials and permissions.
Links
- Autotask PSA REST API Documentation - Official API documentation for Autotask PSA, useful for understanding the contract charge resource and operations.