
Hello Guys ,
I've an issue with dynamics 365 on premise
when user click submit button, I update status reason on the form and save the record and move BPF to the next stage using the JS Code :
Xrm.Page.data.save().then(MoveBPFNext, errorCallback);
and I use an on demand workflow on BPF New Stage entry
the problem is when an error for any reason occurs in the stage entry workflow , the form is not rollback to old status reason value , and status reason become new value however the workflow logic not implemented and the BPF not moved.
how can I rollback to old status reason if workflow caused any error ?
Thanks
*This post is locked for comments
I have the same question (0)Hi, Not possible in this context. Save implies a database commit and the workflow is simply triggered and fails.
It would be possible to create "previous value fields" and then on failure of the workflow revert the original form to the original data.
The depth of this will depend on your requirements.