I used to have this function working :
{{get(split(1.data.full_name; space); 2)}}
I use it to get name and first name.
It doesn’t return anything.
Any idea why ?
Thanks for your help
Xavier
I used to have this function working :
{{get(split(1.data.full_name; space); 2)}}
I use it to get name and first name.
It doesn’t return anything.
Any idea why ?
Thanks for your help
Xavier
Welcome to the Make community!
What does your full name variable contain?
Please provide the output bundles of the modules by running the scenario, then click the white speech bubble on the top-right of each module and select “Download output bundles”.
Save the bundle contents in your text editor as a bundle.txt
file, and upload it here into this discussion thread.
Uploading it here will look like this:
bundle.txt (12.3 KB)
If you are unable to upload files on this forum, alternatively you can paste the formatted output bundle 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 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!
Try remapping your variables.
You can manually type the variable like this:
{{1.data.nom_complet}}
Yes it looks like remaping solved the issue.
I’m going to try your solution.
I was wondering, what happen if someone has 3 names ?
Ex Paul Doe Andys
How can we have Doe Andys for last name ?
Thanks for your help
Xavier
split by space, slice array using 1
as second parameter, then join with space
For more information, see https://www.make.com/en/help/functions/array-functions#slice--array--start---end--