Support Article
Unable to Finish Assignment and complete Flow
SA-35976
Summary
User has requirement to launch a local action as modal dialog, on clicking a button.Which indeed calls a flow action.
In the flow action's section "pxModalButtonSubmit" control button is used.
"pxModalButtonSubmit" control has a inherited action "Run-Script" for click event to finish the modal dialog.

As in the screenshot a data-transform is configured to run first but instead the script is running first and finishing the assignment upon clicking the button at run time.
Error Messages
Not Applicable
Steps to Reproduce
1.Create a button control "pxModalButtonSubmit".
2.Configure a click action to Run-DataTransform.
"pxModalButtonSubmit" control has a inherited action "Run-Script" for click event.
Now at run time if we click on button the 2nd action "Run-Script" is executed first.
Root Cause
"pxModalButtonSubmit" control inherited action has the priority over other action sets configured on it.
Resolution
User is suggested not to use pxModalButtonSubmit control instead asked to create a button and configure the click event actions in the following order:
1. Run-DataTransform.
2. "Run-Script" which uses "doModalAction" function to finish the modal dialog.
Published May 2, 2017 - Updated October 8, 2020
Have a question? Get answers now.
Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.