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.