Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Getting mandatory fields in a webservice query
#1
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?
Reply
#2
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)
Joe
TSolucio
Reply
#3
Thanks! I knew about the list types but not how it got its information.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)