⚙ Operations Hub

KimRogers
Participant | Platinum Partner
Participant | Platinum Partner

How can I use Custom Format Data to remove non consistent text

SOLVE

Not sure if this is even possible, but I'm trying to use Format Data in workflows to remove text from a Deal property

 

The problem I have is that the text I am trying to remove differs on each deal. 

 

For example the deal name is "Joe Bloggs (TL) 01/01/23". 

The name convention is the contacts name followed by the initials of the Sales Representative, followed by the date the deal was closed. 

 

I want to cut the section "(TL) 01/01/23" from the deal name, so keep the name of the contact but remove the initials and date. 

 

Is there a way to do this with Format Data in workflows? 

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

How can I use Custom Format Data to remove non consistent text

SOLVE

Hi @KimRogers,

 

You can cut the section using the custom mode in the format data action and the regex_replace fomula:

 

karstenkoehler_0-1692159389767.png

 

Best regards!

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

2 Replies 2
KimRogers
Participant | Platinum Partner
Participant | Platinum Partner

How can I use Custom Format Data to remove non consistent text

SOLVE

Thanks so much @karstenkoehler !

karstenkoehler
Solution
Hall of Famer | Partner
Hall of Famer | Partner

How can I use Custom Format Data to remove non consistent text

SOLVE

Hi @KimRogers,

 

You can cut the section using the custom mode in the format data action and the regex_replace fomula:

 

karstenkoehler_0-1692159389767.png

 

Best regards!

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.