How to route to a different path, If incoming date format is incorrect

Hi,

I have a incoming string with multiple ways of Date, So I’m trying to extract all of dates from this and process to a DB

Friday October 6
10/11 cancel the pickup for 11.24 this client on 9.28.

How do I route the flow based on data format that incoming. Basically I wants If DD/MMMM is success go with the same flow, if Not route to a different flow

Output

Screenshot 2023-10-04 at 10.35.25

Flow

-Thank you

Welcome to the Make community!

Have you tried creating a filter to validate the individual variables first? Put that before the filter with the parseDate function using “AND”.

It might be possible to further optimise your Text Parser module’s Pattern. However more information is needed.

1.

Please share screenshots of the module fields and filters in question? It would really help other community members to see what you’re looking at.

2.

Please export the scenario blueprint file to allow others to replicate the issue. At the bottom of the scenario editor, you can click on the three dots to find the Export Blueprint menu item.

Screenshot_2023-08-24_230826

Uploading it here will look like this:

blueprint.json (12.3 KB)

3.

Please provide the input/output bundles of the modules by running the scenario, then click the bubble on the top-right of each module, save the contents as a bundle.json file, and upload it here into this discussion thread:

Screenshot_2023-08-29_100800

Following these steps will allow others to assist you here. Thanks!

2 Likes

Hi Samliew

How Do I do that ?
This particular variable comes with either the correct format as MONTH or any other String

Have you tried creating a filter to validate the individual variables first? Put that before the filter with the parseDate function using “AND”.

Screenshot 2023-10-04 at 11.10.06