---
schema_version: "1"
id: c7c7e390f63ab286576cbca5b642d500c6eeeaf1be63b68f107d757a5a63abf2
title: SearchRequest Class
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/health_cloud_object_reference/apex_class_id_verification_SearchRequest.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.health_cloud_object_reference.meta/health_cloud_object_reference/apex_class_id_verification_SearchRequest.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: 38133186c3b9d74ecce13ed735878581429f2210d68cee1524e5378cc72c6102
description: Contains information about the search request data. The search request represents search filters for object-based search, search terms for text-based search, and the verification context that includes the process definition, process details, and process fields.Creates an instance of the SearchRequest class with the specified parameter values.Creates an instance of the SearchRequest class.Specifies the search criteria used for the object-based search.Specifies the search term for the account to use when performing a search.Specifies the object that contains the setup data and context required to perform the search.
---
# SearchRequest Class

Contains information about the search request data. The search request represents search filters for object-based search, search terms for text-based search, and the verification context that includes the process definition, process details, and process fields.

## Namespace

[id\_verification](https://developer.salesforce.com/docs/atlas.en-us.health_cloud_object_reference.meta/health_cloud_object_reference/apex_namespace_id_verification.htm "The id_verification namespace provides an interface and classes for Health Cloud to verify the caller’s identity.")

- **[SearchRequest Constructors](https://developer.salesforce.com/docs/atlas.en-us.health_cloud_object_reference.meta/health_cloud_object_reference/apex_class_id_verification_SearchRequest.htm#apex_id_verification_SearchRequest_constructors)**
- **[SearchRequest Properties](https://developer.salesforce.com/docs/atlas.en-us.health_cloud_object_reference.meta/health_cloud_object_reference/apex_class_id_verification_SearchRequest.htm#apex_id_verification_SearchRequest_properties)**

## SearchRequest Constructors

The following are constructors for SearchRequest.

- **[SearchRequest(searchTerm, searchFilters, verificationContext)](https://developer.salesforce.com/docs/atlas.en-us.health_cloud_object_reference.meta/health_cloud_object_reference/apex_class_id_verification_SearchRequest.htm#apex_id_verification_SearchRequest_ctor)**  
    Creates an instance of the [SearchRequest](#apex_class_id_verification_SearchRequest "Contains information about the search request data. The search request represents search filters for object-based search, search terms for text-based search, and the verification context that includes the process definition, process details, and process fields.") class with the specified parameter values.
- **[SearchRequest()](https://developer.salesforce.com/docs/atlas.en-us.health_cloud_object_reference.meta/health_cloud_object_reference/apex_class_id_verification_SearchRequest.htm#apex_id_verification_SearchRequest_ctor_2)**  
    Creates an instance of the [SearchRequest](#apex_class_id_verification_SearchRequest "Contains information about the search request data. The search request represents search filters for object-based search, search terms for text-based search, and the verification context that includes the process definition, process details, and process fields.") class.

### SearchRequest(searchTerm, searchFilters, verificationContext)

Creates an instance of the [SearchRequest](#apex_class_id_verification_SearchRequest "Contains information about the search request data. The search request represents search filters for object-based search, search terms for text-based search, and the verification context that includes the process definition, process details, and process fields.") class with the specified parameter values.

#### Signature

public SearchRequest(String searchTerm, List<id\_verification.FieldValue> searchFilters, id\_verification.VerificationContext verificationContext)

#### Parameters

searchTerm

Type: String

Required. Specifies the search term for the account to use when performing a search.

searchFilters

Type: List<id\_verification.FieldValue>

Specifies the search criteria used for the object-based search.

verificationContext

Type: id\_verification.VerificationContext

Required. Specifies the object that contains the setup data and context required to perform the search.

### SearchRequest()

Creates an instance of the [SearchRequest](#apex_class_id_verification_SearchRequest "Contains information about the search request data. The search request represents search filters for object-based search, search terms for text-based search, and the verification context that includes the process definition, process details, and process fields.") class.

#### Signature

public SearchRequest()

## SearchRequest Properties

The following are properties for SearchRequest.

- **[searchFilters](https://developer.salesforce.com/docs/atlas.en-us.health_cloud_object_reference.meta/health_cloud_object_reference/apex_class_id_verification_SearchRequest.htm#apex_id_verification_SearchRequest_searchFilters)**  
    Specifies the search criteria used for the object-based search.
- **[searchTerm](https://developer.salesforce.com/docs/atlas.en-us.health_cloud_object_reference.meta/health_cloud_object_reference/apex_class_id_verification_SearchRequest.htm#apex_id_verification_SearchRequest_searchTerm)**  
    Specifies the search term for the account to use when performing a search.
- **[verificationContext](https://developer.salesforce.com/docs/atlas.en-us.health_cloud_object_reference.meta/health_cloud_object_reference/apex_class_id_verification_SearchRequest.htm#apex_id_verification_SearchRequest_verificationContext)**  
    Specifies the object that contains the setup data and context required to perform the search.

### searchFilters

Specifies the search criteria used for the object-based search.

#### Signature

public List<id\_verification.FieldValue> searchFilters {get; set;}

#### Property Value

Type: List<[id\_verification.FieldValue](https://developer.salesforce.com/docs/atlas.en-us.health_cloud_object_reference.meta/health_cloud_object_reference/apex_class_id_verification_FieldValue.htm#apex_class_id_verification_FieldValue "Contains a key-value pair represented by the developer name and value of the field. The key-value pair is used for both search results and verification.")\>

### searchTerm

Specifies the search term for the account to use when performing a search.

#### Signature

public String searchTerm {get; set;}

#### Property Value

Type: [String](https://developer.salesforce.com/docs/atlas.en-us.264.0.apexref.meta/apexref/apex_methods_system_string.htm)

### verificationContext

Specifies the object that contains the setup data and context required to perform the search.

#### Signature

public id\_verification.VerificationContext verificationContext {get; set;}

#### Property Value

Type: [id\_verification.VerificationContext](https://developer.salesforce.com/docs/atlas.en-us.health_cloud_object_reference.meta/health_cloud_object_reference/apex_class_id_verification_VerificationContext.htm#apex_class_id_verification_VerificationContext "Contains information about the verification context, including the process definition, selected search result, selected verified result, and verified result.")