---
schema_version: "1"
id: e0cdd25ef4fb31dc2dc7f8a5ae9ef3335031ae2ab4bbfc45d86b8f1d703949a9
title: Omnistudio Data Mapper Extract Examples (Managed Package)
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/xcloud/264-0-0/os_dataraptor_extract_examples.md
canonical_url: https://help.salesforce.com/s/articleView?id=xcloud.os_dataraptor_extract_examples.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: c080bbc7fcc53b0290b96b20748f958f602938948ea15bcb102bd94e91991dbd
description: For the managed package runtime, Data Mapper Extract examples demonstrate object relationships, paging with data values, paging with offsets, working with attributes, and relationship notation.
products:
  - Omnistudio
release: "264"
---
# Omnistudio Data Mapper Extract Examples (Managed Package)

For the managed package runtime, Data Mapper Extract examples demonstrate object relationships, paging with data values, paging with offsets, working with attributes, and relationship notation.

![Managed Package app icon](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-xcloud-omnistudio_for_managed_packages-264-0-0-production-enus/aa2554ec-624a-4ee6-8da4-6435670e6e62/resources-global/_corporate/images/managedpackageicon.png) This information is for Omnistudio for Managed Packages. For Omnistudio on standard runtime, see [Omnistudio Help](https://help.salesforce.com/s/articleView?id=xcloud.os_omnistudio_standard.htm&language=en_US).

For additional examples that show how you can improve Data Mapper performance for some use cases using relationship notation, see [Relationship Notation versus Multiple Extract Steps (Managed Package)](https://help.salesforce.com/s/articleView?id=xcloud.os_relationship_notation_versus_multiple_extract_steps.htm&release=264.0.0&type=5 "For the managed package runtime, using relationship notation improves the performance of Omnistudio Data Mappers that retrieve data from a parent of the primary sObject. You use this notation in the Extract JSON Paths for the parent sObject's fields instead of adding a second sObject in the Data Mapper's Extract tab. Two examples illustrate how to use relationship notation.").

- **[Create a Basic Omnistudio Data Mapper Extract Example (Managed Package)](https://help.salesforce.com/s/articleView?id=xcloud.os_create_a_basic_dataraptor_extract_example.htm&release=264.0.0&type=5)**  
    For the managed package runtime, a Data Mapper extract accepts an account ID parameter and returns the account name.
- **[Extract Data from Three Related Objects (Managed Package)](https://help.salesforce.com/s/articleView?id=xcloud.os_extract_data_from_three_related_objects.htm&release=264.0.0&type=5)**  
    For the managed package runtime, create an Omnistudio Data Mapper Extract for use by a Case-handling Omniscript. The agents who handle Cases can look up an Account, list all the Cases for the Account, and find the Contact for each Case.
- **[Page Through Sorted Data Using Data Values (Managed Package)](https://help.salesforce.com/s/articleView?id=xcloud.os_page_through_sorted_data_using_data_values.htm&release=264.0.0&type=5)**  
    For the managed package runtime, if an Omnistudio Data Mapper Extract is expected to retrieve a lot of records, you can use _paging_ to retrieve a few at a time based on field values. For example, you can page through Accounts by Id.
- **[Page Through Sorted Data Using Offsets (Managed Package)](https://help.salesforce.com/s/articleView?id=xcloud.os_page_through_sorted_data_using_offsets.htm&release=264.0.0&type=5)**  
    For the managed package runtime, if an Omnistudio Data Mapper Extract is expected to retrieve a lot of records, you can use _paging_ to retrieve a few at a time based on OFFSET values. For example, you can page through Contacts by last name.
- **[Extract Account Attribute Data (Managed Package)](https://help.salesforce.com/s/articleView?id=xcloud.os_extract_account_attribute_data.htm&release=264.0.0&type=5)**  
    For the managed package runtime, an Omnistudio Data Mapper accepts an Account Id and returns Profile Attribute values for that Account.
- **[Extract Multiple Relationship Levels and Custom Field Values (Managed Package)](https://help.salesforce.com/s/articleView?id=xcloud.os_extract_multiple_relationship_levels_and_custom_field_values.htm&release=264.0.0&type=5)**  
    For the managed package runtime, suppose you want to retrieve Contract data that includes the Version (parent) and the name of the user (grandparent) who created the Contract. You can use relationship notation with custom fields.
- **[Extract from Multiple Related Custom Objects (Managed Package)](https://help.salesforce.com/s/articleView?id=xcloud.os_extract_from_multiple_related_custom_objects.htm&release=264.0.0&type=5)**  
    For the managed package runtime, although relationship notation is different for standard and custom fields, it is exactly the same for standard and custom objects. This example extracts data from three custom fields of the vlocity\_cmt\_\_CatalogProductRelationship\_\_c SObject.