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 Service → Create If Not Exists
AI-generatedOverview
This node operation for the 'Contract Service' resource with the 'Create If Not Exists' operation is designed to create a contract service record in the Autotask PSA system only if a duplicate does not already exist. It helps prevent duplicate entries by allowing users to specify fields for duplicate detection and update fields if differences are found. This operation is useful in scenarios where contract services need to be managed efficiently without creating redundant records, such as in automated contract management workflows or integration scenarios where contract services are synchronized from other systems.
Use Case Examples
- Automatically create a new contract service only if it does not already exist based on specified deduplication fields.
- Update existing contract service details if differences are found in specified update fields during the creation attempt.
- Throw an error if a duplicate contract service is found, based on user preference.
Properties
| Name | Meaning |
|---|---|
| Dedup Fields Names or IDs | Fields used for duplicate detection. If empty, deduplication is skipped and a new record 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. |
| Error On Duplicate | Whether to throw an error when a duplicate is found instead of returning it. |
| Fields | Fields to map for the contract service record creation or update, supporting auto-mapping and multi-key matching. |
Output
JSON
id- The unique identifier of the created or found contract service record.status- The status of the operation, e.g., created, found, or updated.data- The detailed data of the contract service record after the operation.
Dependencies
- An API key credential for Autotask PSA REST API authentication.
Troubleshooting
- If the node throws an error about duplicate detection, check the 'Error On Duplicate' setting and the deduplication fields configuration.
- Ensure that the API credentials are correctly set and have sufficient permissions to create or update contract services.
- If updates are not applied as expected, verify that the 'Update Fields' are correctly specified and that the values differ from the existing record.
Links
- Autotask PSA REST API Documentation - Official API documentation for Autotask PSA, useful for understanding the contract service resource and operations.