How to handle Error in beforeReplicaSaved
I need to sync with an external API when a new product is created. How can i return an error and stop the replication in the beforeReplicaSaved method if the API call failed?
I tried:
But this resulted in 2 messages one error and one success.
0 Replies