function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion

Marking wsdl fields as Mandatory


I have created a WSDL from an existing APEX class. How can I designate certain fields in the WSDL as mandatory ("minoccurs = 1")?



Thanks for reply.

I did refer to the link but I did not follow what is meant by "object schema definition".

If you're talking about "cls-meta.xml" file, then this is what that file has...


<?xml version="1.0" encoding="UTF-8"?>
<ApexClass xmlns="">