apidocs

GetSavedSearches API

Lists saved searches and/or search page definitions visible to the authenticated user.

Endpoint

/srv.asmx/GetSavedSearches

Methods

Parameters

Parameter Type Required Description
authenticationTicket string Yes Authentication ticket obtained from AuthenticateUser
searchPageType string No Type filter: all, searchPage, or savedSearch. Case-insensitive. Empty or omitted defaults to all

searchPageType values

Value Returns
all Both search page definitions and saved searches (default)
searchPage Search page definitions only (UI field-visibility configurations)
savedSearch Saved searches only (user-defined saved query criteria)

Response

Success

<root success="true">
  <SearchPage id="1"  name="Advanced Search"      type="searchPage"  ownerId="0"  anonymousAccess="false" publicAccess="true" description="" />
  <SearchPage id="3"  name="My Q4 Contracts"      type="savedSearch" ownerId="12" anonymousAccess="false" publicAccess="false" description="" />
  <SearchPage id="7"  name="All Active Documents"  type="savedSearch" ownerId="0"  anonymousAccess="true"  publicAccess="true" description="System-wide saved search" />
</root>

Error

<root success="false" error="Error message here" />

Response Attributes (per SearchPage element)

Attribute Type Description
id int Unique ID. Pass to GetSavedSearch, UpdateSavedSearch, or DeleteSavedSearch
name string Display name
description string Optional description
type string searchPage or savedSearch
ownerId int 0 = system-wide; > 0 = private, owned by that user ID
anonymousAccess bool Whether anonymous (unauthenticated) users can use this entry. Always false for personal entries
publicAccess bool Whether all authenticated users can use this entry. Always false for personal entries

Visibility Rules

Required Permissions

Example Requests

Request (GET) — all types

GET /srv.asmx/GetSavedSearches?authenticationTicket=abc123 HTTP/1.1

Request (GET) — saved searches only

GET /srv.asmx/GetSavedSearches?authenticationTicket=abc123&searchPageType=savedSearch HTTP/1.1

Request (POST)

POST /srv.asmx/GetSavedSearches HTTP/1.1
Content-Type: application/x-www-form-urlencoded

authenticationTicket=abc123&searchPageType=searchPage

Request (SOAP 1.1)

POST /srv.asmx HTTP/1.1
Content-Type: text/xml; charset=utf-8
SOAPAction: "http://tempuri.org/GetSavedSearches"

<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
  <soap:Body>
    <GetSavedSearches xmlns="http://tempuri.org/">
      <authenticationTicket>abc123</authenticationTicket>
      <searchPageType>all</searchPageType>
    </GetSavedSearches>
  </soap:Body>
</soap:Envelope>

Error Codes

Error Description
[901] Session expired or Invalid ticket Invalid or expired authentication ticket
Invalid searchPageType searchPageType value is not all, searchPage, or savedSearch

Notes