Textparser with monday and SMTP email

Hello! I am new to make.com and have been trying to create items in a Monday board from emails for a good while now.

The emails body text look like this:
"Coach Haugen - Kundeemne

Name
name@gmail.com
12345678"

The first line is the name of the lead, the second line is the email and the last the phone number. They can sometimes add a “+47” which is the Norwegian land code.

The flow

This is the flow. The email is SMTP and I know I got the correct one. However, the issue starts already at the “Text parser” module.

Text parser advanced settings

I found from other posts where they got the name, email and phonenumber with this:

“{s:\d+:“name”;s:\d+:”(?.+?)“;s:\d+:“email”;s:\d+:”(?.+?)“;s:\d+:“phone”;s:\d+:”(?.+?)“;}”

My intention is then to add the name, email and phonenumber in each of the columns in Monday.

However, the only options I get from the text parser is:
image

I would suspect this is not correct.

You are using the Text Parser Match Pattern (Advanced) module, which outputs differently compared to the non-advanced version.

It doesn’t seem like you need the Advanced module, so why are you using it? Simply switch back to the normal module first, and provide new screenshots of the output if you still need assistance.

samliewrequest private consultation

Join the unofficial Make Discord server to chat with other makers!

1 Like

Ok! Will do! I will give it a shot! Thanks for the advice.

My guy! You solved it! Thanks! Simple fixes does wonders!

1 Like

I’ll keep this thread active until I get an item created in Monday to ensure it works.

So I almost solved it, but items are still not created.

So this is the updated flow:

Flow

Email module settings
Criteria: All emails
Sender email address: No input
Recipient email address: No input
Subject: “New Message From “clientdomain””
Phrase: No input
Mark message(s) as read when fetched: Yes
Maximum number of results: 20

Text Parser setting
Pattern:
“{s:\d+:“name”;s:\d+:”(?.+?)“;s:\d+:“email”;s:\d+:”(?.+?)“;s:\d+:“phone”;s:\d+:”(?.+?)“;}”

Global match: No
Case sensitive: Yes
Multiline: Yes
Singleline: No
Continue the execution of the route even if the module finds no matches: No
Text: “Text content”

Monday.com settings
Item Name: “15. name” (option from the text parser)
Board ID: Client board selected
Group ID: “New leads”

Array of column values to change:
Item 1
Column ID: Phone
Value
Phone (digits only): “15. phone” (option from the text parser)

Item 2
Column ID: Email
Value
Email: “15. email” (option from the text parser)

Create Labels if Missing: No

What can be the reason for it to not create items? I know the email is correctly connected as it reads my emails and mark them as read.

1 Like

Welcome to the Make community!

If you need further assistance, please provide the following:

1. Screenshots of module fields and filters

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

You can upload images here using the Upload icon in the text editor:
Screenshot_2023-10-07_111039

2. Scenario blueprint

Please export the scenario blueprint file to allow others to view the mappings and settings. 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
(Note: Exporting your scenario will not include private information or keys to your connections)

Uploading it here will look like this:

blueprint.json (12.3 KB)

3. And most importantly, Input/Output bundles

Please provide the input and output bundles of the modules by running the scenario (or get from the scenario History tab), then click the white speech bubble on the top-right of each module and select “Download input/output bundles”.
Screenshot_2023-10-06_141025

A.

Save each bundle contents in your text editor as a bundle.txt file, and upload it here into this discussion thread.

Uploading them here will look like this:

module-1-input-bundle.txt (12.3 KB)
module-1-output-bundle.txt (12.3 KB)

B.

If you are unable to upload files on this forum, alternatively you can paste the formatted bundles in this manner:

  • Either add three backticks ``` before and after the code, like this:

    ```
    input/output bundle content goes here
    ```

  • Or use the format code button in the editor:
    Screenshot_2023-10-02_191027

Providing the input/output bundles will allow others to replicate what is going on in the scenario even if they do not use the external service.

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

samliewrequest private consultation

Join the unofficial Make Discord server to chat with other makers!

1 Like

Will do. I will upload it when I get home.

So the screenshot is the same. Nothing is different.

Scenario blueprint

blueprint.json (11.4 KB)

Input/Output bundles

Input/Output bundles - Email (Watch Emails)

module-1-input-bundle.txt (2 Bytes)
Module-1-Email_Output-bundle .txt (11.6 KB)

Input/Output bundles - Text parser

Module-2-Text-parser_Input-bundle .txt (111 Bytes)
module-1-input-bundle.txt (2 Bytes)

Input/Output bundles - Monday (Create item)

No input or output created.

Your pattern was incorrect:

Screenshot_2024-06-09_120601

The correct regex pattern should be

You can use a Text Parser “Match Pattern” module with this Pattern (regular expression):

(?<name>.+)\s+(?<email>.+@.+)\s+(?<phone>[+\d\s]+)

Proof

https://regex101.com/r/KQuR4D

Important Info

  • :warning: Global match must be set to NO!

Output

Screenshot_2024-06-09_120649


For more information, see Text Parser in the Make Help Center:

Match Pattern
The Match pattern module enables you to find and extract string elements matching a search pattern from a given text. The search pattern is a regular expression (aka regex or regexp), which is a sequence of characters in which each character is either a metacharacter, having a special meaning, or a regular character that has a literal meaning.

Hope this helps!

samliewrequest private consultation

Join the Make Fans Discord server to chat with other makers!

2 Likes

Thank you very much! I will retry and come up with an update. As always, I appreciate you taking the time to help out!

After changing the pattern, I got this message from the monday.com module:

“[200] invalid value, please check our API documentation for the correct data structure for this column. Guide to changing column values [ Error Code: ColumnValueException / Error Details: {“column_value”:”{"phone"=>"47301668\n\n", "countryShortName"=>"NO"}“,“column_type”:“PhoneColumn”} ]”

Input data:
[
{
“name”: “Kevin”,
“boardId”: “6338832804”,
“groupId”: “topics”,
“columnValuesToChange”: [
{
“columnId”: “phone__1”,
“columnValue”: {
“phone”: “47301668\n\n”,
“countryShortName”: “NO”
}
},
{
“columnId”: “email”,
“columnValue”: {
“text”: “Kevin.mollerstuen@gmail.com”,
“email”: “Kevin.mollerstuen@gmail.com
}
}
],
“create_labels_if_missing”: false
}
]

Output data:
[
null
]

No problem, glad I could help!

1. If anyone has a new question in the future, please start a new thread. This makes it easier for others with the same problem to search for the answers to specific questions, and you are more likely to receive help since newer questions are monitored closely.

2. The Make Community guidelines encourages users to try to mark helpful replies as solutions to help keep the Community organized.

This marks the topic as solved, so that:

  • others can save time when catching up with the latest activity here, and
  • allows others to quickly jump to the solution if they come across the same problem

To do this, simply click the checkbox at the bottom of the post that answers your question:
Screenshot_2023-10-04_161049

3. Don’t forget to like and bookmark this topic so you can get back to it easily in future!

4. Do join the unofficial Make Discord server for live chat and video assistance

samliewrequest private consultation

Join the unofficial Make Discord server to chat with other makers!

1 Like