+ Start a Discussion
gnmHgnmH 

How to make WSDL fields mandatory

Hi,

 

I am generating 4 fields in a WSDL from environment and I want to make 3 of them mandatory. Is there any way to make those fields mandatory in WSDL? How can I change the class to do so.

 

 

Best Answer chosen by Admin (Salesforce Developers) 
UVUV

I believe you would be able to do it from the object schema definition, not from the wsdl.

you can add the <required>true</required> attribute to make any field required.

All Answers

UVUV

I believe you would be able to do it from the object schema definition, not from the wsdl.

you can add the <required>true</required> attribute to make any field required.

This was selected as the best answer
gnmHgnmH

Thanks a lot :)