CoreBOSBB

Full Version: Getting mandatory fields in a webservice query
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
When we select fields, for instance
PHP Code:
SELECT FROM salesorder WHERE id $id 
Can we also retrieve information about if the fields are mandatory or not?
You have to use Describe for that. Describe gives you all the meta information of the fields:

https://github.com/tsolucio/coreBOSwsDevelopment/blob/master/testcode/080lib_describe.php

Also in the Webservice Development tool there is a page that uses Describe to show you all that information correctly formatted. (List Types link)
Thanks! I knew about the list types but not how it got its information.