I am updating the entire response with a new resposne by initialising a new object on onexecuted trigger. But POS is still receiving the original data rather than the modified one.
I am updating the entire response with a new resposne by initialising a new object on onexecuted trigger. But POS is still receiving the original data rather than the modified one.
I already changed to code to override the existing handler. But i have previously updated the response for a different client(the response which got updated was different).
Triggers cannot change the instance of the response-object, they can only update mutable fields of the existing one.
If you need to replace the whole response-object you'll need to use a handler to override the default behavior; you can call the default behavior from your custom handler by leveraging the ExecuteNextAsync method; this will allow you to get back the original response object and you can then replace it with your version.
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,280 Super User 2024 Season 2
Martin Dráb 230,214 Most Valuable Professional
nmaenpaa 101,156