# Text parser correctly mapped to JavaScript

**URL:** https://community.make.com/t/text-parser-correctly-mapped-to-javascript/61916
**Category:** Questions
**Tags:** text-parser, javascript
**Created:** [November 20, 2024, 12:08pm UTC](https://community.make.com/t/text-parser-correctly-mapped-to-javascript/61916 "2024-11-20T12:08:30Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Joachim\_M\_Vis](https://avatars.discourse-cdn.com/v4/letter/j/9e8a1a/32.png) [@Joachim\_M\_Vis](https://community.make.com/u/Joachim_M_Vis)
#### Post date: [November 20, 2024, 12:08pm UTC](https://community.make.com/t/text-parser-correctly-mapped-to-javascript/61916/1 "2024-11-20T12:08:30Z")

</div>

Hello everyone!

My text parser gives me the date as text and I need it as date for my table.  
In the text parser I have 5 bundles and the date is always in the 4th bundle.

AI BETA has recommended the module 1001fx Execute Javascript code.

I have a problem with the following implementation:  
**Input Mapping** : Ensure that the `Due_Date` from `bundle4` is correctly mapped to the JavaScript module. Use the variable `{{4.Due_Date}}` to access it.

I’m also not sure if the Javascript is correct.

Thank you very much for your support!

 ![image](https://europe1.discourse-cdn.com/flex013/uploads/make/original/3X/7/4/74c1f1539f79e2bbab1d90bd81e91469e6c6fd94.png)

---

<div class="post-metadata">

### Author: ![samliew](https://dub1.discourse-cdn.com/flex013/user_avatar/community.make.com/samliew/32/13327_2.png) [@samliew](https://community.make.com/u/samliew)
#### Post date: [November 20, 2024, 12:31pm UTC](https://community.make.com/t/text-parser-correctly-mapped-to-javascript/61916/2 "2024-11-20T12:31:10Z")

</div>

Welcome to the Make community!

What does the variable `8.value` contain? What are you trying to do with the JavaScript code?

To allow others to assist you with your scenario, please provide the following:

# 1. Relevant Screenshots

Please share screenshots of your scenario, any error messages, 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:  
 ![](https://europe1.discourse-cdn.com/flex013/uploads/make/original/3X/2/0/20b53cdf28d223e85fc9654c350eadebd37f5d3c.png)

# 2. Scenario Blueprint

Please export the scenario blueprint file to allow others to view the mapped variables in the module fields. At the bottom of the scenario editor, you can click on the three dots to find the Export Blueprint menu item.

 ![](https://europe1.discourse-cdn.com/flex013/uploads/make/original/2X/2/2ff55ee04419049c127f183db2b3eebfbbbbfc64.png)

# 3. Output Bundles of Modules

Please provide the **output** bundles of the modules by running the scenario (or get from the [scenario History tab](https://www.make.com/en/help/scenarios/scenario-execution-history)), then click the white speech bubble on the top-right of each module and select “Download input/output bundles”.

 ![](https://europe1.discourse-cdn.com/flex013/uploads/make/original/3X/2/8/2876156ab3ea5bc9e40bbc0edfb9f025406b7c48.png)

### A. Upload as Text File

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

### B. Insert as Formatted Code Block

If you are unable to upload files on this forum, alternatively you can paste the formatted bundles.  
These are the two ways to format text so that it won’t be modified by the forum:

- **Method 1: Type code block manually**

- **Method 2. Highlight and click the format 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!

---

<div class="post-metadata">

### Author: ![Joachim\_M\_Vis](https://avatars.discourse-cdn.com/v4/letter/j/9e8a1a/32.png) [@Joachim\_M\_Vis](https://community.make.com/u/Joachim_M_Vis)
#### Post date: [November 20, 2024, 1:07pm UTC](https://community.make.com/t/text-parser-correctly-mapped-to-javascript/61916/3 "2024-11-20T13:07:11Z")

</div>

Hi Samliew,

to get the information from Mistral into the right Bundle is not the issue. Only I want to have the Date not as a text but as date. The 8.value is from the Text parser.

 ![image](https://europe1.discourse-cdn.com/flex013/uploads/make/original/3X/1/d/1d40bf09c12d16b376b5c40a180463ba0f970574.png)

 ![image](https://europe1.discourse-cdn.com/flex013/uploads/make/original/3X/8/2/82073ec822b8e6a7e80fef4329ad240f5fbe273e.png)

---

<div class="post-metadata">

### Author: ![Make\_Bot](https://dub1.discourse-cdn.com/flex013/user_avatar/community.make.com/make_bot/32/14661_2.png) [@Make\_Bot](https://community.make.com/u/Make_Bot)
#### Post date: [February 18, 2025, 1:16pm UTC](https://community.make.com/t/text-parser-correctly-mapped-to-javascript/61916/4 "2025-02-18T13:16:53Z")

</div>


