# How to use fireToDB() function in Modified java script value plugin

**URL:** <https://community.automationedge.com/t/how-to-use-firetodb-function-in-modified-java-script-value-plugin/5976>\
**Category:** Process Studio\
**Created:** [June 15, 2022, 8:37am UTC](https://community.automationedge.com/t/how-to-use-firetodb-function-in-modified-java-script-value-plugin/5976 "2022-06-15T08:37:36Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![sagar\_channe](https://avatars.discourse-cdn.com/v4/letter/s/c57346/32.png) [@sagar\_channe](https://community.automationedge.com/u/sagar_channe)\
**Post date:** [June 15, 2022, 8:37am UTC](https://community.automationedge.com/t/how-to-use-firetodb-function-in-modified-java-script-value-plugin/5976/1 "2022-06-15T08:37:37Z")

</div>

I need step to use fireToDB() function in Modified java script value plugin

---

<div class="post-metadata">

**Author:** ![KalyaniW](https://avatars.discourse-cdn.com/v4/letter/k/71e660/32.png) [@KalyaniW](https://community.automationedge.com/u/KalyaniW)\
**Post date:** [June 15, 2022, 9:07am UTC](https://community.automationedge.com/t/how-to-use-firetodb-function-in-modified-java-script-value-plugin/5976/2 "2022-06-15T09:07:56Z")

</div>

Hello @sagar_channe

You can use the below Sample code in the Modified Java Script plugin to run fireToDB()-

```auto
var DBconnection = "MysqlConnection";
var SQLstatement = "select id, name from employee";
var xArr = fireToDB(DBconnection, SQLstatement);

```

---

<div class="post-metadata">

**Author:** ![sagar\_channe](https://avatars.discourse-cdn.com/v4/letter/s/c57346/32.png) [@sagar\_channe](https://community.automationedge.com/u/sagar_channe)\
**Post date:** [December 20, 2022, 6:42am UTC](https://community.automationedge.com/t/how-to-use-firetodb-function-in-modified-java-script-value-plugin/5976/3 "2022-12-20T06:42:55Z")

</div>

hi Kalyani,

we tried this process but we are getting error where it state that the database connection string is not found.

 ![MicrosoftTeams-image](https://canada1.discourse-cdn.com/flex027/uploads/automationedge/original/2X/8/8c22d03971459c6a0e43494bbed9506dae7d074f.png)
