<h3>Object Records Advanced Search</h3>

<pre><code class="bash">
    # Here is a curl example
    curl \
    X GET -H "Authorization:{token}" 
    http://localhost:8888/api/Objects/ObjectRecordsAdvancedSearch
    ?object_id=111&#38;show_all=true&#38;include_subfolders=true
    &#38;fields=[{"Field1":"x"},{"Field2":"xx"},{"Field3":"xxx"} ]
    &#38;conditions=( Field1 or Field2 ) and Field3&#38;page_number=1&#38;page_size=100
</code></pre>

<p>
  Get all records for a specific object and filter the data based on conditions, you need to make a GET call to the following url
  :<br />
  <code class="higlighted break-word"
    >http://localhost:8888/api/Objects/ObjectRecordsAdvancedSearch</code
  >
</p>

<br />

<pre><code class="json">
Result example :

{
  "records": [
    {
      "object_id": 0,
      "record_id": 0,
      "object_type": 0,
      "record_guid": "string",
      "record_fields": [
        {
          "system_name": "string",
          "system_description": "string",
          "value": {}
        }
      ]
    }
  ],
  "pager": {
    "HasNext": true,
    "HasPrevious": true,
    "CurrentPage": 0,
    "PageSize": 0,
    "TotalPages": 0,
    "TotalCount": 0
  }
}
</code></pre>

<h4>Query Parameters</h4>

<table class="central-overflow-x">
  <thead>
    <tr>
      <th>Field</th>
      <th>Parameter Type</th>
      <th>Type</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
      <tr>
          <td>object_id</td>
          <td>query</td>
          <td>long</td>
          <td>Object Id.</td>
      </tr>
      <tr>
          <td>show_all</td>
          <td>query</td>
          <td>boolean</td>
          <td>Show All (Optional - default true).</td>
      </tr>
      <tr>
          <td>include_subfolders</td>
          <td>query</td>
          <td>boolean</td>
          <td>Include Subfolders (Optional - default true).</td>
      </tr>
      <tr>
          <td>fields</td>
          <td>query</td>
          <td>string</td>
          <td>Fields: e.g.: [{"Field1":"x"},{"Field2":"xx"},{"Field3":"xxx"} ] <br> (Optional - default "").</td>
      </tr>
      <tr>
          <td>conditions</td>
          <td>query</td>
          <td>string</td>
          <td>Conditions: e.g.: <br> ( Field1 or Field2 ) and Field3 <br> (Optional - default "").</td>
      </tr>

      <tr>
          <td>page_number</td>
          <td>query</td>
          <td>integer</td>
          <td>
              Page Number (Optional - default 1). A cursor for use in pagination.
              Specifies the page number to display.
          </td>
      </tr>
      <tr>
          <td>page_size</td>
          <td>query</td>
          <td>integer</td>
          <td>
              Page Size (Optional - default 100). A limit on the number of objects to
              be returned, between 1 and 100.
          </td>
      </tr>
      <tr>
          <td>Authorization</td>
          <td>header</td>
          <td>string</td>
          <td>Add Authorization header token</td>
      </tr>
  </tbody>
</table>
