- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
WAPI feature request: Return 'required' flag on object fields
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
09-06-2017 10:53 PM
When working with objects in the WAPI, there's the concept of "standard" fields and "required" fields. Standard fields are those that are returned by default for an object unless otherwise specified. Required fields are those that need to be included when creating a new instance of that object. For some objects, these fields are the same. But for others, not so much and it is useful to distinguish between the two.
For example, the WAPI docs list record:a as having name, ipv4addr, and view as Standard fields. But only name and ipv4addr are listed as Required.
The new _get_doc=1 options in WAPI schema queries are awesome. And while they include a boolean called standard_field which indicates whether a field is Standard or not. They don't include a similar boolean like required_field. So if you're trying to figure out from a schema query how to create a new instance of a particular object, you're currently forced to check the HTML WAPI docs which is not ideal.
Solved! Go to Solution.
Re: WAPI feature request: Return 'required' flag on object fields
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
09-13-2017 02:13 PM
I've opened a feature request for this. If you ask your field Sales Engineer, they can subscribe to the feature request and will be notified as we make progress on it.