# Issue updating request data from post.pre\_process

**URL:** <https://community.dreamfactory.com/t/issue-updating-request-data-from-post-pre-process/4323>\
**Category:** Server-Side Scripting\
**Created:** [March 9, 2018, 2:23pm UTC](https://community.dreamfactory.com/t/issue-updating-request-data-from-post-pre-process/4323 "2018-03-09T14:23:30Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Anil\_Thakkar](https://avatars.discourse-cdn.com/v4/letter/a/9de0a6/32.png) [@Anil\_Thakkar](https://community.dreamfactory.com/u/Anil_Thakkar)\
**Post date:** [March 9, 2018, 2:23pm UTC](https://community.dreamfactory.com/t/issue-updating-request-data-from-post-pre-process/4323/1 "2018-03-09T14:23:30Z")

</div>

Hi There,

I am using windows version of DF.

I am unable to update resource from event. below here is my event and code within event. I can READ and VALIDATE the values but when I try to update the same value during post.pre\_process, its not reflecting in db.

Event Name: mysql mysql.\_table.{table\_name} mysql.\_table.{table\_name}.post.pre\_process mysql.\_table.employee.post.pre\_process

Code:

event.request.payload.resource[0].salary = 90;

Note:  
I have enabled both check boxes “Active” and “Allow script to modify request payload”. I am sure that Event is triggering because I can validate the data and throw errors.
