Oracle Web Services On Demand Guide > Web Services On Demand API Calls > Web Services v2.0 API Calls >

The ViewMode Argument


The ViewMode argument is an input argument for all of the Web Services v2.0 API methods. It applies to parent objects only, and specifies the level of access to parent records identified in the method call. ViewMode can take one of the following values:

  • ManagerBooks. Provides access to the same set of records that are returned when Manager Visibility is enabled in the company profile and ViewMode is set to AllBooks.
  • Manager. Provides access to records for which the current user or a subordinate of the current user owns the records, or is part of the team that owns the records.
  • EmployeeManager. Provides access to records for which the current user or a subordinate of the current user owns the records. This value is similar to Manager, but teams are not considered.
  • Sales Rep. Provides access to records for which the current user is part of the team that owns the records.
  • Personal. Provides access to records owned by the user.
  • Organization. Provides access to records within the current user's organization.
  • Broadest. Provides access to the maximum set of records allowed for the user. This is the default value.
  • AllBooks. For objects that support book, provides access to all books. This value is similar to Broadest, and works like All+ with the Book Selector in the Oracle CRM On Demand UI.
  • Context. For objects that support books, provides access to the default book. For access to a specific book, the QueryPage method must use the BookId and BookName arguments.

The order of preference from most restrictive to least restrictive is:

  • Personal
  • Sales Rep
  • Organization

Performance might be improved when a restricted set of records is accessed.

Oracle Web Services On Demand Guide, Version 21.0 (Oracle CRM On Demand Release 33) Copyright © 2016, Oracle and/or its affiliates. All rights reserved. Legal Notices.