Delete Association
AutomatR.HubSpot.Activities.DeleteAssociation
The "Delete Association" activity in AutomatR is part of the HubSpot activities package, providing the capability to delete associations between different objects in a user's HubSpot account. This activity helps in managing relationships between entities, allowing users to remove associations based on specific association types.
Properties
Name | Description |
---|---|
Input | |
From Object ID | Enter the ID of the source object for which the association needs to be deleted. |
To Object ID | Enter the ID of the target object from which the association should be removed. |
From Object Type | Enter the type of the source object (e.g., Contacts, Companies, Deals, Tickets). |
To Object Type | Enter the type of the target object (e.g., Contacts, Companies, Deals, Tickets). |
Type | Enter the type of association to be deleted (e.g., contact_to_company). |
Optional | |
Delay | Enter the wait time in seconds (Example: 5 seconds) to start the activity. |
Output | |
Result | Outputs the result of the "Delete Association" operation. True if the association is deleted successfully; otherwise, false. |
How to use:
- Drag and drop the "Delete Association" activity onto the workflow.
- Configure the properties by specifying the source and target object IDs, object types, and the type of association to be deleted.
- Optionally, configure the delay if needed.
- Execute the workflow to delete the specified association in the HubSpot account.
Example: Consider an example where the "Delete Association" activity is used to remove the association between a contact and a company:
Delete Association:
From Object ID: "contact123"
To Object ID: "company456"
From Object Type: "contacts"
To Object Type: "companies"
Type: "contact_to_company"
Result: isAssociationDeleted
In this example, the activity attempts to delete the association between the contact with ID "contact123" and the company with ID "company456." The result of the operation (success or failure) is stored in the Boolean variable "isAssociationDeleted" for further handling in the workflow.