# Using onEdit(e) with GlideApps

**URL:** <https://community.glideapps.com/t/using-onedit-e-with-glideapps/7754>\
**Category:** Ask for Help\
**Created:** [April 24, 2020, 12:26pm UTC](https://community.glideapps.com/t/using-onedit-e-with-glideapps/7754 "2020-04-24T12:26:26Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Laurent\_Girardeau](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/laurent_girardeau/32/1316_2.png) [@Laurent\_Girardeau](https://community.glideapps.com/u/Laurent_Girardeau)\
**Post date:** [April 24, 2020, 12:26pm UTC](https://community.glideapps.com/t/using-onedit-e-with-glideapps/7754/1 "2020-04-24T12:26:26Z")

</div>

Hello  
To extend the functionality of Glide Apps I need to use onedit (e) to intercept the data sent by Glide Apps to the google sheet. The event is triggered well but I cannot recover any data

So I’m looking for a piece of cade to adapt it  
thanks in advance

```
   function onEdit(e)
{  

 var range = e.range;
  
Logger.log("currentRange"+ range)
Logger.log("currentSource"+ e.source)
Logger.log("value"+ e.value)
Logger.log("Oldvalue"+ e.oldvalue)
}

```

 ![Capture d’écran 2020-04-24 à 14.17.23](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/2X/e/ed2cd03236d6714148685771cc1e08a2bb0e6a71.png)

---

<div class="post-metadata">

**Author:** ![gvalero](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/gvalero/32/1037_2.png) [@gvalero](https://community.glideapps.com/u/gvalero)\
**Post date:** [April 24, 2020, 12:36pm UTC](https://community.glideapps.com/t/using-onedit-e-with-glideapps/7754/2 "2020-04-24T12:36:35Z")

</div>

Hi,

In these cases, you must use onChange(e) event instead.

Saludos

---

<div class="post-metadata">

**Author:** ![Laurent\_Girardeau](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/laurent_girardeau/32/1316_2.png) [@Laurent\_Girardeau](https://community.glideapps.com/u/Laurent_Girardeau)\
**Post date:** [April 24, 2020, 12:43pm UTC](https://community.glideapps.com/t/using-onedit-e-with-glideapps/7754/3 "2020-04-24T12:43:05Z")

</div>

Thank you for your response  
But I try and no data return

Could you give me a sample code that works to inspire me  
thanks in advance  
function onChange(e)  
{

```
 var range = e.range;
  
Logger.log("currentRange"+ range)
Logger.log("currentSource"+ e.source)
Logger.log("value"+ e.value)
Logger.log("Oldvalue"+ e.oldvalue)
}
```

---

<div class="post-metadata">

**Author:** ![Carlos\_DeSilva](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/carlos_desilva/32/19965_2.png) [@Carlos\_DeSilva](https://community.glideapps.com/u/Carlos_DeSilva)\
**Post date:** [April 24, 2020, 1:42pm UTC](https://community.glideapps.com/t/using-onedit-e-with-glideapps/7754/4 "2020-04-24T13:42:52Z")

</div>

Check this out

> [@Trigger script onEdit event from App](https://community.glideapps.com/t/trigger-script-onedit-event-from-app/6795/4):
>
> ,
