Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Getting mandatory fields in a webservice query
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:

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.

Forum Jump:

Users browsing this thread: 1 Guest(s)