• Instructions to Ask a Question

    Click on the "Ask a Question" button and select the application for which you would like to ask questions.

    We have 5 different products namely - Pabbly Connect, Pabbly Subscription Billing, Pabbly Email Marketing, Pabbly Form Builder, Pabbly Email Verification.

    The turnaround time is 24 hrs (Business Hours - 10.00 AM to 6.00 PM IST, Except Saturday and Sunday). So your kind patience will be highly appreciated!

    🚀🚀Exclusive Discount Offer

    Just in case you're looking for any ongoing offers on Pabbly, you can check the one-time offers listed below. You just need to pay once and use the application forever -
     

    🔥 Pabbly Connect One Time Plan for $249 (🏆Lifetime Access) -  View offer 

    🔥 Pabbly Subscription Billing One Time Plan for $249 (🏆Lifetime Access) - View offer

parse string - default values

Nexify

Member
We have an automation that has an email as the trigger.
In this email there is a string in this format:

taak:J:01/12/2023:31/12/2023:4u:description

With this I want to create a task in motion.
I can split the string so I have the separate array values.
action: taak
person: J
start date: 1/12/2023
due date: 31/12/2023
duration: 4u
Description: description

But, how can I easily add a default value if the sent string is for example:

taak:J::31/12/2023:4u:description (there is no start date). I would like to put in a default value (for example today).
Same goes for all the other ones.

Filters are not appropriate because it needs to continue, regardless. Router is not working here either.
Do I need to write a regex expression?

Is there an easy way to do this?
 

Arshita

Moderator
Staff member
Please allow me some time to check your use case with our team. I will get back to you soon.
 

Supreme

Well-known member
Staff member
Filters are not appropriate because it needs to continue, regardless. Router is not working here either.
Do I need to write a regex expression?
The current action step doesn't support converting this particular string directly. However, you might find success by attempting to use a Regular Expression to perform the conversion instead.
 
Top