Throw Error on SpBeforeSave

Hello @Ramiz,

You can run PnP request under spSaved event to update the Reference number column. Please see the code example in this post:

And then redirect the user to the edit form: