---
schema_version: "1"
id: eee55fd415c4b02cdd909a0de71d6bb3b74d3fe4c000758e505bdb5046a86b43
title: Extract Fields from the Account Object Example
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/xcloud/264-0-0/os_create_a_basic_dataraptor_extract_example_46195.md
canonical_url: https://help.salesforce.com/s/articleView?id=xcloud.os_create_a_basic_dataraptor_extract_example_46195.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: 28f85fe6053a5f86b33b7b1a2f806d38eeb15157d21a675ae1280b44a0d7d74a
description: In this example, a Data Mapper extracts an account ID parameter and returns the account name so that an Omniscript can use the extracted account data.
products:
  - Omnistudio
release: "264"
---
# Extract Fields from the Account Object Example

In this example, a Data Mapper extracts an account ID parameter and returns the account name so that an Omniscript can use the extracted account data.

## Create Settings

| Field | value | notes |
| --- | --- | --- |
| Interface Type | Extract |   |
| Input Type | JSON | If using with another Omnistudio component such as an Omniscript, set the input as JSON. |
| Output Type | JSON |   |

## Extract Settings

Map the extracted object with the path in the JSON, and create a filter for the ID.

| Field | Value | notes |
| --- | --- | --- |
| Extraction Object | Account |   |
| Extract Object Path | Account |   |
| Filter | Id = InputID |   |

## Mapping Settings

Map the input data to a JSON node so that an Omniscript (or other component) can access the data. To define a data transformation, you can add key-value pairs. This addition replaces the defined key with the value in the output.

| Extract JSON Path | JSON Output Path | notes |
| --- | --- | --- |
| Account:Name | Account:Name | Choose a data type for the data type, such as string. If needed, you can set a default value. |

## Extract Preview

In Preview, add InputId as the key and a valid Salesforce Account object ID as the value, such as 0016100001OBpRi.

After you execute the sample Data Mapper in Preview, the desired output is shown, such as this example.

`{       "Account":        {          "Name":"Smith Incorporated"       } }`