cancel
Showing results for 
Search instead for 
Did you mean: 

MDM Validation - Getting triggered in Portal

Former Member
0 Kudos

Hi All,

I have bunch of validation in MDM (data manager) ;

during my Portal screen traverse ( am in the middle of the process - the record is not yet committed to MDM), is it possible to call MDM validation(MDM Java API) to validate the fields values entered so for?

really glad if you could revert back asap.

thanks,

Alexander

Accepted Solutions (0)

Answers (2)

Answers (2)

nitin_mahajan2
Contributor
0 Kudos

Create an empty record set all the values in it or update existing record with the new values without committing it.

RetrieveValidations Command - get the validations array, use the validation name to find the appropriate validation you want to execute or you can execute all in loop.

ValidateRecordsCommand for existing record or ValidateNewRecordCommand for New records(empty record) to execute.

Returns you ValidationResult.

ValidationResult contains getFailedValidations() that returns array of ValidationProperties of those validations that failed. Loop through the array to get the Error Message you would have set to display.

and after doing all this... Chill and Enjoy:-)

Regards,

Nitin

Greg_Austin
Active Participant
0 Kudos

Yes you can run specific validations before the record is in MDM and before the save. You can use the RetrieveValidationsCommand to get the validations from MDM and loop through the results to find the exact validations you want to run. Then use the ValidateNewRecordValuesCommand passing in the specific validations to run.

Hope this helps.

Greg