Return Custom Error Message to SOAP Call
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-01-2024 12:24 PM
We are building an integration receiving user records from an HR system. The HR system can only talk to ServiceNow via SOAP and can only use the core end point "service-now.com/sys_user.do?SOAP". All data validation will need to happen on the ServiceNow side. Fields like Business Unit and Department will need to be validated available values as well as the combination of the two being valid. The only method I have found to work is using a combination of a Business Rule, to perform the validation steps, and a Data Policy that makes the fields mandatory. If the validation fails in the business rule then the field values are set to NULL which then triggers the data policy, returning an error to the SOAP call about missing required fields. This is fine when a bad value is sent but not helpful when the combination of the two values is bad. Currently the SOAP call just gets an error that the two fields are mandatory.
Is there another way to data checking for this specific SOAP call that would allow custom error messages to be returned?
Thank you