<?xml version="1.0" encoding="UTF-8"?><api:function-page xml:base="/apidoc/8.0/xdmp.getServerFieldNames.xml" generated="2015-10-07T16:36:00.016766-07:00" mode="javascript" xmlns:api="http://marklogic.com/rundmc/api"><api:function-name>xdmp.getServerFieldNames</api:function-name><api:suggest>xdmp.getserverfieldnames</api:suggest><api:suggest>xdmp</api:suggest><api:suggest>getserverfieldnames</api:suggest><api:function-link mode="xquery" fullname="xdmp:get-server-field-names">/apidoc/8.0/xdmp:get-server-field-names.xml</api:function-link><api:function mode="javascript" name="getServerFieldNames" type="builtin" lib="xdmp" category="AppServerBuiltins" hidden="false" bucket="MarkLogic Built-In Functions" prefix="xdmp" namespace="http://marklogic.com/xdmp" fullname="xdmp.getServerFieldNames"><api:summary>
  Returns a sequence of the server field names.
</api:summary><api:params/><api:return>ValueIterator</api:return><api:privilege>
  <p xmlns="http://www.w3.org/1999/xhtml"><code>http://marklogic.com/xdmp/privileges/xdmp-get-server-field-names</code></p>
</api:privilege><api:usage>
  This functions returns the server field names of the fields for which you
  have privileges to see. Users with the <code xmlns="http://www.w3.org/1999/xhtml">admin</code> role have
  privileges to see all of the server fields.  Application Services uses several
  protected server fields, each having a name that starts with "scope@".
  Therefore, if you are a user with the <code xmlns="http://www.w3.org/1999/xhtml">admin</code> role, you will see
  all of those fields when you call <code xmlns="http://www.w3.org/1999/xhtml">xdmp:get-server-field-names</code>.
</api:usage><api:example class="javascript"><pre xml:space="preserve" xmlns="http://www.w3.org/1999/xhtml">
xdmp.getServerFieldNames();
=&gt;
["name1","name2"]
 </pre></api:example></api:function></api:function-page>