I need an expert in Make to help me with some configurations.
I am attaching a video SMS - TO WA - BOOKING | Make - 24 July 2024 | Loom
I need an expert in Make to help me with some configurations.
I am attaching a video SMS - TO WA - BOOKING | Make - 24 July 2024 | Loom
Hello @Alin_Tur and welcome to the Make Community!
You can use a Regular Expression in a Text Parser app, Match Elements module, or you can simply use split() and first() and last() functions.
If you split() the text by comma, take the first() element, then split() the first element by “Dear” and take the last() element of that result, you should be left just with the name!
Here is how that looks:
You can expand this text, copy it all and paste into a scenario to get an example of how this works.
{
"subflows": [
{
"flow": [
{
"id": 5,
"module": "util:SetVariables",
"version": 1,
"parameters": {},
"mapper": {
"variables": [
{
"name": "Message",
"value": "Dear Alin Turi,\n\nYou are onboard\nMake the most of your trip!"
}
],
"scope": "roundtrip"
},
"metadata": {
"designer": {
"x": -254,
"y": -26
},
"restore": {
"expect": {
"variables": {
"items": [
null
]
},
"scope": {
"label": "One cycle"
}
}
},
"expect": [
{
"name": "variables",
"type": "array",
"label": "Variables",
"spec": [
{
"name": "name",
"label": "Variable name",
"type": "text",
"required": true
},
{
"name": "value",
"label": "Variable value",
"type": "any"
}
]
},
{
"name": "scope",
"type": "select",
"label": "Variable lifetime",
"required": true,
"validate": {
"enum": [
"roundtrip",
"execution"
]
}
}
],
"interface": [
{
"name": "Message",
"label": "Message",
"type": "any"
}
]
}
},
{
"id": 6,
"module": "util:SetVariables",
"version": 1,
"parameters": {},
"mapper": {
"variables": [
{
"name": "Name",
"value": "{{last(split(first(split(5.Message; \",\")); \"Dear\"))}}"
}
],
"scope": "roundtrip"
},
"metadata": {
"designer": {
"x": 2,
"y": -25
},
"restore": {
"expect": {
"variables": {
"items": [
null
]
},
"scope": {
"label": "One cycle"
}
}
},
"expect": [
{
"name": "variables",
"type": "array",
"label": "Variables",
"spec": [
{
"name": "name",
"label": "Variable name",
"type": "text",
"required": true
},
{
"name": "value",
"label": "Variable value",
"type": "any"
}
]
},
{
"name": "scope",
"type": "select",
"label": "Variable lifetime",
"required": true,
"validate": {
"enum": [
"roundtrip",
"execution"
]
}
}
],
"interface": [
{
"name": "Name",
"label": "Name",
"type": "any"
}
]
}
}
]
}
],
"metadata": {
"version": 1
}
}
Also, @Alin_Turi, thanks for your video, that certainly helps with adding context. If possible, please try to add text details to make searching the Community easier for others. Since you used Loom, you might even be able to just paste the transcription after cleaning it up a little. Thank you so much!
Welcome to the Make community!
If you need further assistance, please provide the following:
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:
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.
(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)
Please provide the input and output bundles of the trigger/iterator/aggregator 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”.
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-output-bundle.txt (12.3 KB)
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:
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!