I need the "Check Conflicts" UI Action to run each time the "Request Approval" UI Action runs

Jeff316
Kilo Guru

These are 2 UI Actions that come out-of-box.

When a user clicks on the UI Action - "Request Approval" button  I need the UI Action" Check Conflicts" to run and complete before the "Request Approval" UI Action can run.

The reason is simple. Our approvals are based on if there is a conflict or not, so I need to ensure the Conflict Checker ran the exact second before the approvals are going to be generated. I cannot just look to see if conflict ever ran. Conflicts are dynamic so I need to run conflict checker again because it could have been days since the BR ran the checker.

1 ACCEPTED SOLUTION

richard38
Tera Guru

I combined them into one. Add the Check conflict code within the current Request Approval. It will check for conflicts and if it finds one will return false otherwise continue on normally. I tried it in my personal instance and it worked but needs further testing to ensure that it meets your requirements.

 

-RC

View solution in original post

2 REPLIES 2

richard38
Tera Guru

I combined them into one. Add the Check conflict code within the current Request Approval. It will check for conflicts and if it finds one will return false otherwise continue on normally. I tried it in my personal instance and it worked but needs further testing to ensure that it meets your requirements.

 

-RC

Yes, that's exactly what I did.

Seems to be working.

I did add a save/update first in the UI Action because if the user changes any of the values in their GUI needed for the conflict logic it wouldn't be used until its saved first.