Tickets & Conversations

DanaIrvine
Contributor

can a workflow look at both old and new value?

SOLVE

Here is what I am tryign to do (paraphrased):

 

If a ticket was in the "Closed" state AND

the ticket has a particular category assigned AND

the ticket status has been changed to "Waiting on Us" THEN

change the status to "New"

 

The problem I am running into is I can't figure out how to look at both the old value of the ticket status and the new one. This needs to only trigger if it is a certain category (I can make this work) and the status has moved from closed to waiting on us. Any other status change should be ignored. Is this possible?

0 Upvotes
1 Accepted solution
karstenkoehler
Solution
Hall of Famer | Partner
Hall of Famer | Partner

can a workflow look at both old and new value?

SOLVE

@DanaIrvine via the workflow from my first reply:

 

"set up a ticket based workflow that enrolls records when the ticket status changes, then waits 5 minutes, then copies the ticket status in the new property."

 

It is not that an old value is speciacifically set. The about-to-be old value simply has 5 minutes until it gets updated as well.

Karsten Köhler
HubSpot Freelancer | RevOps & CRM Consultant | Community Hall of Famer

Beratungstermin mit Karsten vereinbaren

 

Did my post help answer your query? Help the community by marking it as a solution.

View solution in original post

0 Upvotes
8 Replies 8
karstenkoehler
Hall of Famer | Partner
Hall of Famer | Partner

can a workflow look at both old and new value?

SOLVE

Hi @DanaIrvine,

 

This can be done with an additional ticket property, same options as ticket status, but name it "Ticket status (delayed by 5 mins)".

 

Next, set up a ticket based workflow that enrolls records when the ticket status changes, then waits 5 minutes, then copies the ticket status in the new property.

 

In the enrollment criteria you can now reference this new property. If the ticket was in the closed status, the new property will hold that info for 5 minutes - long enough for the enrollment of your workflow.

 

Let me know if you have any questions about this!

Karsten Köhler
HubSpot Freelancer | RevOps & CRM Consultant | Community Hall of Famer

Beratungstermin mit Karsten vereinbaren

 

Did my post help answer your query? Help the community by marking it as a solution.

0 Upvotes
DanaIrvine
Contributor

can a workflow look at both old and new value?

SOLVE
How will this pick up the old status? If it triggers on the status change, it'll pick up the new status. I need to get the status before the change happens.
0 Upvotes
karstenkoehler
Hall of Famer | Partner
Hall of Famer | Partner

can a workflow look at both old and new value?

SOLVE

@DanaIrvine the "Ticket status (delayed by 5 minutes)" contains the old value. For five minutes at least, long enough for your workflow to consider it as the old value.

Karsten Köhler
HubSpot Freelancer | RevOps & CRM Consultant | Community Hall of Famer

Beratungstermin mit Karsten vereinbaren

 

Did my post help answer your query? Help the community by marking it as a solution.

0 Upvotes
DanaIrvine
Contributor

can a workflow look at both old and new value?

SOLVE

I must be missing something. how do I copy the value before it gets changed? you said to create a trigger, wait 5 minuts then copy the status. by that time it's already been changed.

0 Upvotes
karstenkoehler
Hall of Famer | Partner
Hall of Famer | Partner

can a workflow look at both old and new value?

SOLVE

@DanaIrvine here's what would happen chronologically:

  1. A ticket is in closed. Both "Ticket status" and "Ticket status (delayed by 5 mins)" have the value closed.
  2. The ticket moves back to waiting on us. "Ticket status" reflects that immediately.
  3. The move triggers the workflow I described: The ticket will enroll, wait 5 minutes, and only then the "Ticket status (delayed by 5 mins)" will reflect the latest "Ticket status" value. During those 5 minutes, "Ticket status (delayed by 5 mins)" will still have the value closed.
  4. While those 5 minutes pass, your actual workflow can enroll tickets by checking whether "Ticket status" is waiting on us and "Ticket status (delayed by 5 mins)" is closed. Because of the delay, and for 5 more minutes, that is true, and the ticket can enroll.

That's why "Ticket status (delayed by 5 mins)" is effectively the old ticket status, at least for the purpose of your enrollment. It'll update after, but by then your workflow (step 4) will have completed what it's doing.

 

Karsten Köhler
HubSpot Freelancer | RevOps & CRM Consultant | Community Hall of Famer

Beratungstermin mit Karsten vereinbaren

 

Did my post help answer your query? Help the community by marking it as a solution.

0 Upvotes
DanaIrvine
Contributor

can a workflow look at both old and new value?

SOLVE

How does the old value get to "Ticket status (delayed by 5 mins)"?

0 Upvotes
karstenkoehler
Solution
Hall of Famer | Partner
Hall of Famer | Partner

can a workflow look at both old and new value?

SOLVE

@DanaIrvine via the workflow from my first reply:

 

"set up a ticket based workflow that enrolls records when the ticket status changes, then waits 5 minutes, then copies the ticket status in the new property."

 

It is not that an old value is speciacifically set. The about-to-be old value simply has 5 minutes until it gets updated as well.

Karsten Köhler
HubSpot Freelancer | RevOps & CRM Consultant | Community Hall of Famer

Beratungstermin mit Karsten vereinbaren

 

Did my post help answer your query? Help the community by marking it as a solution.

0 Upvotes
DanaIrvine
Contributor

can a workflow look at both old and new value?

SOLVE
I figured it out, thanks
0 Upvotes