# How to get data from Monday Item Read connector

**URL:** https://community.integray.com/t/how-to-get-data-from-monday-item-read-connector/72
**Category:** Java script - JS mapping statement
**Tags:** mondaycom, js-mapper
**Created:** [June 15, 2023, 5:29am UTC](https://community.integray.com/t/how-to-get-data-from-monday-item-read-connector/72 "2023-06-15T05:29:44Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![tomas](https://avatars.discourse-cdn.com/v4/letter/t/439d5e/32.png) [@tomas](https://community.integray.com/u/tomas)
#### Post date: [June 15, 2023, 5:29am UTC](https://community.integray.com/t/how-to-get-data-from-monday-item-read-connector/72/1 "2023-06-15T05:29:44Z")

</div>

Here is short JS mapper script that can help you to get data directly **Monday Items Read** connector. Basically one of the step in the task is:

![image](https://europe1.discourse-cdn.com/flex017/uploads/integray/original/1X/5a7f279b22ffde082a90c737077d53c9c8c9c9ff.png)

It is returning data in the following data schema:

 ![image](https://europe1.discourse-cdn.com/flex017/uploads/integray/original/1X/334c4e96a07052d32596ea2f94a8f4f5c578e39f.png)

This means that column values looks like this:

 ![image](https://europe1.discourse-cdn.com/flex017/uploads/integray/original/1X/11696a4c57520a7e90ffa9d680f5f7f878bd7efd.png)

If get this data into next step that will be JS mapper as need to extract some of the value:

![image](https://europe1.discourse-cdn.com/flex017/uploads/integray/original/1X/f5aa3da6e699e2dbff9d25f236a13e99c8629f3a.png)

Here is a small trick as I need also board ID for next step I create new schema where I included Monday Item Readed Output schema:

 ![image](https://europe1.discourse-cdn.com/flex017/uploads/integray/original/1X/ed84b14b20c522d7ca664919665c9af4ffd252c1.png)

Whit this statement that can return value of particular column based on ColumnValues.ID:

```auto
const mondayData = inputData[0];
const branchColumn = mondayData.MondayData[0].ColumnValues.find(x => x.ID == "text21");

var branchName = branchColumn?.PlainValue;

if(!branchName){
  log.error("Missing branch information");
};

return [{
  "BoardID": mondayData.BoardID,
  "ItemID": mondayData.MondayData[0].ID,
  "Branch": branchName,
}];

```

In this way I can further process extracted data and use them for other connectors. I my case I use it to run build on Jenkins and update Monday Pulse with information that build starter (that is why I have in my schema BoradID + ItemID that are used as input for other task.
