Sales Integrations

DLiprini
Participant

Using Zapier to complete/remove tasks

SOLVE

Hi guys

 

I would like to remove hubspot tasks associated to a deal contact when the deal reaches a certage stage of the pipeline. 

 

For example, when a deal is started it creates a follow up task (though Zapier) when the deal moves to won/lost stage I would like to remove(ideally) or complete all tasks associated to the deal. 

 

Does anyone know how to do this?

0 Upvotes
4 Accepted solutions
RSchweighart
Solution
Top Contributor | Gold Partner
Top Contributor | Gold Partner

Using Zapier to complete/remove tasks

SOLVE

Hi @DLiprini,

 

Here's what I would recommend using Zapier.

 

Trigger off the deal stage changing then maybe add a filter step for only the stages you want to allow through. You may need to grab the interal id of stages for the filter step like this:

RSchweighart_0-1721860405398.png

 

Then, you'll use the find associations step. Notice you'll need to manually type in 'task'.

RSchweighart_1-1721860723428.png

 

You mentioned potentially having multiple tasks, so you'll likely want to create a loop from text. This setup will still handle situations where only one task is associated with the deal. You also might want to have a filter step before the loop to ensure a task is actually associated with the deal.

RSchweighart_2-1721860827574.png

 

Then, you'll use an API request step to complete the tasks.

RSchweighart_3-1721860934868.png

 

If you want to archive the task, set it up like this.

RSchweighart_4-1721861027652.png

 

Please let me know if anything is unclear from the screenshots.

 

All the Best,

Ryan Schweighart

Whole Hart Impact, LLC

whimpact.co

I help businesses with HubSpot and Zapier. 

View solution in original post

Shadab_Khan
Solution
Key Advisor | Elite Partner
Key Advisor | Elite Partner

Using Zapier to complete/remove tasks

SOLVE

@janek Thanks for the tag! I am pretty aligned with RSchweighart's solution here, The only thing I can think off is the governance & adoption part of this and ask questions:

  • What types of tasks are left open when a deal is closed?
  • Why are they open?

This will open up an opportunity with Reps to discuss and maybe remove / consolidate some tasks

Found my solution helpful? mark it as accepted

View solution in original post

RSchweighart
Solution
Top Contributor | Gold Partner
Top Contributor | Gold Partner

Using Zapier to complete/remove tasks

SOLVE

The loop step looks good. To confirm, does your step 5 map to the output from step 4 like this?

RSchweighart_4-1721861027652.png

Step 3 will only work if there's one deal being passed, so the find association step is finding all the tasks associated with the deal you have mapped in step 3, which is actually the deal that triggers the zap.

RSchweighart_0-1724958668098.png

 

Hope that gets you there. Let me know if there are any more questions.

View solution in original post

0 Upvotes
RSchweighart
Solution
Top Contributor | Gold Partner
Top Contributor | Gold Partner

Using Zapier to complete/remove tasks

SOLVE

That's my bad, the error is due to incorrect mapping of step 4 in step 5. You will want to select the value 'Task' from step 4 in your case to map in step 5. It will be the first task id in the two you have listed. When the zap runs, it will loop through each task if there are multiple. I have mine labelled 'Tasks' but it looks like yours will be 'Task'.

RSchweighart_0-1725287003095.png

 

Sorry about that.

View solution in original post

0 Upvotes
10 Replies 10
Shadab_Khan
Solution
Key Advisor | Elite Partner
Key Advisor | Elite Partner

Using Zapier to complete/remove tasks

SOLVE

@janek Thanks for the tag! I am pretty aligned with RSchweighart's solution here, The only thing I can think off is the governance & adoption part of this and ask questions:

  • What types of tasks are left open when a deal is closed?
  • Why are they open?

This will open up an opportunity with Reps to discuss and maybe remove / consolidate some tasks

Found my solution helpful? mark it as accepted

RSchweighart
Solution
Top Contributor | Gold Partner
Top Contributor | Gold Partner

Using Zapier to complete/remove tasks

SOLVE

Hi @DLiprini,

 

Here's what I would recommend using Zapier.

 

Trigger off the deal stage changing then maybe add a filter step for only the stages you want to allow through. You may need to grab the interal id of stages for the filter step like this:

RSchweighart_0-1721860405398.png

 

Then, you'll use the find associations step. Notice you'll need to manually type in 'task'.

RSchweighart_1-1721860723428.png

 

You mentioned potentially having multiple tasks, so you'll likely want to create a loop from text. This setup will still handle situations where only one task is associated with the deal. You also might want to have a filter step before the loop to ensure a task is actually associated with the deal.

RSchweighart_2-1721860827574.png

 

Then, you'll use an API request step to complete the tasks.

RSchweighart_3-1721860934868.png

 

If you want to archive the task, set it up like this.

RSchweighart_4-1721861027652.png

 

Please let me know if anything is unclear from the screenshots.

 

All the Best,

Ryan Schweighart

Whole Hart Impact, LLC

whimpact.co

I help businesses with HubSpot and Zapier. 

DLiprini
Participant

Using Zapier to complete/remove tasks

SOLVE

Hi Ryan 

 

Firstly, a massive thank you to you and the others that replied. I can't believe there is a solution. 

 

I found if there are more than one task assosiated to the deal, I get the following error. Do you know how I resolve it?

Screenshot 2024-08-27 at 08.26.18.png

Another question, you mentioned a filter to check whether the task is linked to the correct deal (we very often have multiple deals, in different stages linked to the same contact), how do I set that up?

 

Once again, huge thank you to all responses!

0 Upvotes
RSchweighart
Top Contributor | Gold Partner
Top Contributor | Gold Partner

Using Zapier to complete/remove tasks

SOLVE

Hi @DLiprini, you're welcome, and I'm glad it's been helpful.

 

You will need a looping step to go through each one. Here's an expansion of step 4 in my other screenshots.

RSchweighart_0-1724782936260.png

 

Here's some more info using filters in Zapier. What is the criteria you would use to filter?

0 Upvotes
DLiprini
Participant

Using Zapier to complete/remove tasks

SOLVE

Thanks Ryan

 

1. I have it set up as recommended and it works perfectly if there is only one task associated to the deal but if there are 2 or more tasks associated it gives an error. How do I solve that issue?

 

Screenshot 2024-08-29 at 08.03.53.png

 

2. My filter question was in relation to ensuring it is removing tasks for that deal ONLY (as there are often multiple deals open for one customer), do I need to use a filter or will the current setup solve that issue?

 

Thanks again

0 Upvotes
RSchweighart
Solution
Top Contributor | Gold Partner
Top Contributor | Gold Partner

Using Zapier to complete/remove tasks

SOLVE

The loop step looks good. To confirm, does your step 5 map to the output from step 4 like this?

RSchweighart_4-1721861027652.png

Step 3 will only work if there's one deal being passed, so the find association step is finding all the tasks associated with the deal you have mapped in step 3, which is actually the deal that triggers the zap.

RSchweighart_0-1724958668098.png

 

Hope that gets you there. Let me know if there are any more questions.

0 Upvotes
DLiprini
Participant

Using Zapier to complete/remove tasks

SOLVE

Hi 

 

I have set it up the same way as yours.

Screenshot 2024-09-02 at 13.15.15.png

Im still getting the same error when there are 2 tasks associated with the same deal.

Screenshot 2024-09-02 at 13.15.28.png

It seems the "," delimiter between the two deal ids is causing the error? 

Screenshot 2024-09-02 at 13.21.10.png

0 Upvotes
RSchweighart
Solution
Top Contributor | Gold Partner
Top Contributor | Gold Partner

Using Zapier to complete/remove tasks

SOLVE

That's my bad, the error is due to incorrect mapping of step 4 in step 5. You will want to select the value 'Task' from step 4 in your case to map in step 5. It will be the first task id in the two you have listed. When the zap runs, it will loop through each task if there are multiple. I have mine labelled 'Tasks' but it looks like yours will be 'Task'.

RSchweighart_0-1725287003095.png

 

Sorry about that.

0 Upvotes
DLiprini
Participant

Using Zapier to complete/remove tasks

SOLVE

Thanks Ryan, you legend!

0 Upvotes
janek
HubSpot Moderator
HubSpot Moderator

Using Zapier to complete/remove tasks

SOLVE

Hi @DLiprini 

 

Thanks for reaching out to the Community!

 

I wanted to invite our subject matter experts to this conversation to see if they have advice.

Hi @RSchweighart @Shadab_Khan @HubSpot_Corey - Do you have any insight or recommendations for @DLiprini?

Thank you!

 

Best,

Jan