---
schema_version: "1"
id: 19554c800b9e55fc8a3861f6327f8f0426eec9d5bf39d2381d0c9ae724bc4223
title: Get Resources Action
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/health_cloud_object_reference/actions_obj_get_resources.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.health_cloud_object_reference.meta/health_cloud_object_reference/actions_obj_get_resources.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: eefcf6289411ff738077b67a6695f729bfac5e4794ffaeedbca000019e977032
description: Search for available resources, such as healthcare providers or medical assets, based on specified search criteria.
---
# Get Resources Action

Search for available resources, such as healthcare providers or medical assets, based on specified search criteria.

This action is available in API version 65.0 and later.

## Supported REST HTTP Methods

**URI**: /services/data/vXX.X/connect/health/appointment-management/resources

Where XX.X is the latest API version.

**Formats**: JSON

**HTTP Methods**: POST

**Authentication**: Authorization: Bearer TOKEN

Where TOKEN is your OAuth access token.

## Inputs

<table class="featureTable sort_table" summary="">



          <thead class="thead sorted" align="left">
            <tr>
              <th class="featureTableHeader  " id="d305476e98">Input</th>

              <th class="featureTableHeader  " id="d305476e101">Type</th>

              <th class="featureTableHeader  " id="d305476e104">Description</th>

            </tr>

          </thead>

          <tbody class="tbody">
            <tr>
              <td class="entry" headers="d305476e98" data-title="Input"><span class="keyword parmname">resourceType</span></td>

              <td class="entry" headers="d305476e101" data-title="Type">String</td>

              <td class="entry" headers="d305476e104" data-title="Description">The type of resource to search for.<div class="p">Valid values are: <ul class="ul bulletList">
                    <li class="li"><span class="keyword parmname">Asset</span></li>

                    <li class="li"><span class="keyword parmname">Provider</span></li>

                  </ul>
                </div>
              </td>

            </tr>

            <tr>
              <td class="entry" headers="d305476e98" data-title="Input"><span class="keyword parmname">providerSearchCriteria</span></td>

              <td class="entry" headers="d305476e101" data-title="Type">Object</td>

              <td class="entry" headers="d305476e104" data-title="Description">Search criteria specific to healthcare providers, such as specialties and
                languages spoken.<p class="p">Use this parameter when <span class="keyword parmname">resourceType</span> is set to
                  <span class="keyword parmname">Provider</span>.
                </p>
              </td>

            </tr>

            <tr>
              <td class="entry" headers="d305476e98" data-title="Input"><span class="keyword parmname">assetSearchCriteria</span></td>

              <td class="entry" headers="d305476e101" data-title="Type">Object</td>

              <td class="entry" headers="d305476e104" data-title="Description">Search criteria specific to medical assets, such as asset type IDs and
                categories.<p class="p">Use this parameter when <span class="keyword parmname">resourceType</span> is set to
                  <span class="keyword parmname">Asset</span>.
                </p>
              </td>

            </tr>

            <tr>
              <td class="entry" headers="d305476e98" data-title="Input"><span class="keyword parmname">commonSearchCriteria</span></td>

              <td class="entry" headers="d305476e101" data-title="Type">Object</td>

              <td class="entry" headers="d305476e104" data-title="Description">Search criteria that apply to both providers and assets, such as facility
                location and search radius.</td>

            </tr>

            <tr>
              <td class="entry" headers="d305476e98" data-title="Input"><span class="keyword parmname">orderBy</span></td>

              <td class="entry" headers="d305476e101" data-title="Type">String</td>

              <td class="entry" headers="d305476e104" data-title="Description">The field used to sort the search results.</td>

            </tr>

            <tr>
              <td class="entry" headers="d305476e98" data-title="Input"><span class="keyword parmname">ascending</span></td>

              <td class="entry" headers="d305476e101" data-title="Type">Boolean</td>

              <td class="entry" headers="d305476e104" data-title="Description">The sort order. Set to <span class="keyword parmname">true</span> for ascending or
                <span class="keyword parmname">false</span> for descending.
              </td>

            </tr>

            <tr>
              <td class="entry" headers="d305476e98" data-title="Input"><span class="keyword parmname">offset</span></td>

              <td class="entry" headers="d305476e101" data-title="Type">Integer</td>

              <td class="entry" headers="d305476e104" data-title="Description">The starting point for retrieving a subset of results, used for
                pagination.</td>

            </tr>

            <tr>
              <td class="entry" headers="d305476e98" data-title="Input"><span class="keyword parmname">searchLimit</span></td>

              <td class="entry" headers="d305476e101" data-title="Type">Integer</td>

              <td class="entry" headers="d305476e104" data-title="Description">The maximum number of search results to return.</td>

            </tr>

          </tbody>

        </table>

## Outputs

| Output | Type | Description |
| --- | --- | --- |
| assetSearchResults | List<Object> | A list of medical assets that match the search criteria. This is populated when resourceType is set to Asset. |
| providerSearchResults | List<Object> | A list of healthcare providers who match the search criteria. This is populated when resourceType is set to Provider. |
| error | List<Object> | A list of errors that occurred during the search, including error codes and messages. |

## Example

Sample Request

{
          "resourceType": "Asset",
          "assetSearchCriteria": {
          "assetName": "machine",
          "assetTypeIds": \[
          "1Fwxx0000004C9bCAE",
          "1Fwxx0000004C96CAE"
          \],
          "assetCategories": \[
          "Device",
          "HealthcareService",
          "Location"
          \],
          "status": "Active",
          "productCode": "PC-45678"
          },
          "commonSearchCriteria": {
          "radius": 5,
          "distanceUnit": "miles"
          },
          "orderBy": "distance",
          "ascending": true,
          "offset": 0,
          "searchLimit": 10
          }

Sample Response

{
          "providerSearchResults": \[\],
          "assetSearchResults": \[
          {
          "assetId": "02iSG000000DA4p0AG",
          "assetName": "MRI Machine Room 3",
          "facilityId": "001SG000000EfT80AK",
          "facilityName": "Downtown Imaging Center",
          "assetCategories": \["Device", "Imaging"\],
          "status": "Active",
          "productCode": "PC-45678"
          }
          \],
          "error": \[\]
          }