Enforcing Required Reference Fields on SOAP/REST Calls

fcaruso123
Tera Expert

I am trying to find a solution to make reference field types on sys_user required when created externally via SOAP or REST call. No issues if no value is passed but if the call sends a value that is not an existing value the field is left blank even though it is required. Tried adding a Data Policy making the field required for SOAP calls but that also does not handle bad values. I do not not want bad values automatically created in the reference tables. I know if I switch to a scripted service call I have much greater control of the data but that is not an option.

1 REPLY 1

Yashsvi
Kilo Sage

Hi @fcaruso123,

please check below link:

https://www.servicenow.com/community/developer-forum/how-to-make-reference-field-mandatory-for-rest-...

Thank you, please make helpful if you accept the solution.