Validation - Entity vs Microflow

0
I am using the Excel Importer on a project which i am working on and if a file which i am importing violates any entity validation rules it throws an exception which is not very clear. I could solve this by removing the entity validation and doing the validation within a microflow - this would mean i could customise the error messages to be more helpful to the user. However before I do this i wanted to check: Are there any disadvantages to performing validation through a custom save microflow vs setting validation rules on an entity?
asked
1 answers
0

You've already highlighted the differences - the entity validation is always enforced, while the microflow validation is only enforced when the microflow is triggered. You could have one page form where the custom save microflow triggers the validation, and a second page form where another save button does not perform the validation. Also, you could probably avoid the validation by using the API to save a record.

Having said that, I don't think it should be an issue for you to replace the entity validations with microflow actions provided you find all the places that your record can be updated and make sure the validations are run if needed. Using right-click - find microflow actions on your entity should help finding all the places you need to decide whether or not to run the validation microflow.

answered