I have a similar requirement where I need to call Create Work action of click of button. The button actions also contain refresh section in which an activity is called. This activity has a certain validation. If the validation fails, the create work action, which is present after this activity should not execute. Can this be achieved? Please let me know the solution. Below is the order of rules applied on click of the button in the button actions.
Refresh-Section[Consists of validation activity]->if validation passes->Create Work action should be executed otherwise
if validation fails, the error message in the validation activity should be triggered.
The validation activity also makes a call to service to fetch some user data.
1) Update the results of your validation executed in the activity into a property.
2) Configure RunScript as an action for the button as below and call CreateNewWork after it.