Skip to main content

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

NameDescription
Input
From Object IDEnter the ID of the source object for which the association needs to be deleted.
To Object IDEnter the ID of the target object from which the association should be removed.
From Object TypeEnter the type of the source object (e.g., Contacts, Companies, Deals, Tickets).
To Object TypeEnter the type of the target object (e.g., Contacts, Companies, Deals, Tickets).
TypeEnter the type of association to be deleted (e.g., contact_to_company).
Optional
DelayEnter the wait time in seconds (Example: 5 seconds) to start the activity.
Output
ResultOutputs the result of the "Delete Association" operation. True if the association is deleted successfully; otherwise, false.

How to use:

  1. Drag and drop the "Delete Association" activity onto the workflow.
  2. Configure the properties by specifying the source and target object IDs, object types, and the type of association to be deleted.
  3. Optionally, configure the delay if needed.
  4. 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.