Displaying Validation Errors in Mobile App via Smart Action
We are experiencing a critical issue in Oracle Sales Cloud concerning the Mobile App and Smart Action(Object function-based action):
- We have created a Smart Action that calls a Groovy/server-side function to perform validations and create tasks.
- For example, in the function, we use the following command for validation errors.
throw new oracle.jbo.ValidationException("You do not have permissions for this action.")
These errors display correctly in the Web UI but do not appear in the Mobile App. As a result, mobile users cannot see critical validation messages and are unable to complete their workflows properly.
- What is the recommended approach for handling validation errors in Smart Actions so that messages appear consistently in both the Web UI and Mobile App?
1