Trigger not working in mobile app

Following this topic, I´ve encountered a problem with the SQL trigger. As I´ve mentioned there, I’ve set a trigger in my shell that should be executed on after save and after update. The trigger is firing as it should but the query it´s sending is not working. The trigger´s definition looks like this:

As far as I understand, @{id} should be substituted by the application with the corresponding value, but that’s not the case, according to the postgres logs the app is sending the query as it is ( id=@{id} ) .

What i´m assuming is that, since the workflow is creating a new record, there is no value assigned @{id} and the trigger gets no value to use. If I omit the trigger, the app creates a guid for the record when it gets saved.