---
schema_version: "1"
id: feea0533c6daa606c71712facc361beb4ed134e0b59731b9572e9600065f6980
title: DRGlobal Class and Methods (Managed Package)
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/xcloud/264-0-0/os_drglobal_class_and_methods.md
canonical_url: https://help.salesforce.com/s/articleView?id=xcloud.os_drglobal_class_and_methods.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: b86fca2f280af6600e1ee8df35d3b2792488656901e1463e8899a71b09da3b56
description: For the managed package runtime, the DRGlobal class provides multiple methods for calling Omnistudio Data Mappers from Apex.
products:
  - Omnistudio
release: "264"
---
# DRGlobal Class and Methods (Managed Package)

For the managed package runtime, the DRGlobal class provides multiple methods for calling Omnistudio Data Mappers from Apex.

![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).

In all the method signatures shown below, the namespace is `omnistudio`, `vlocity_cmt`, `vlocity_ins`, or `vlocity_ps`. The `bundleName` is the Data Mapper name.

For sample code, see [Omnistudio Data Mapper Calls From Apex (Managed Package)](https://help.salesforce.com/s/articleView?id=xcloud.os_dataraptor_calls_from_apex.htm&release=264.0.0&type=5 "For the managed package runtime, to call a Data Mapper from Apex, call the vlocity_ins.DRGlobal.processObjectsJSON() method, specifying the name of the Data Mapper and the input data that it requires.").

**Method Names**

processObjectsJSON

Signature:

```
static namespace.DRProcessResult processObjectsJSON(String objectList, String bundleName)
```

The `objectList` must be a JSON String.

processObjects

Signatures:

```
static namespace.DRProcessResult processObjects(List<SObject> objectList)
static namespace.DRProcessResult processObjects(List<SObject> objectList, String bundleName)
static namespace.DRProcessResult processObjects(List<SObject> objectList, String bundleName, Map<String, Object> additionalInfo)
static namespace.DRProcessResult processObjects(List<SObject> objectList, String bundleName, Map<String, Object> additionalInfo, Map<String, Object> filesMap)
```

The first signature, which doesn't require a `DRName`, is only for a Data Mapper Load.

The `additionalInfo` is a Map that applies to every SObject, such as extra data for processing.

pprocessString

Signature:

```
static namespace.DRProcessResult processString(String input, String bundleName)
```

The `input` must be an XML String.

processFromApex

Signatures:

```
static namespace.DRProcessResult processFromApex(List<Map<String, Object>> objectList, String bundleName, String locale)
static namespace.DRProcessResult processFromApex(Map<String, Object> objectList, String bundleName, String locale)
```

These methods ignore Sharing Rules, which ensures that the Data Mapper being invoked is private. See [Sharing Rules](https://help.salesforce.com/articleView?id=security_about_sharing_rules.htm&amp;type=0&language=en_US) in the Salesforce help. The locale parameter is available in Summer '20 and later releases.

process

Signatures:

```
static namespace.DRProcessResult process(List<Map<String, Object>> objectList, String bundleName, String locale)
static namespace.DRProcessResult process(Map<String, Object> objectList, String bundleName, String locale)
```

The locale parameter is available in Summer '20 and later releases.

processPost

Signature:

```
global static Map<String, Object> processPost(Map<String, Object> bodyData)
```

This method can only call a Data Mapper Load. No other Apex method can pass the bulkUpload parameter to a Data Mapper. See [Omnistudio Data Mapper Calls From Apex (Managed Package)](https://help.salesforce.com/s/articleView?id=xcloud.os_dataraptor_calls_from_apex.htm&release=264.0.0&type=5 "For the managed package runtime, to call a Data Mapper from Apex, call the vlocity_ins.DRGlobal.processObjectsJSON() method, specifying the name of the Data Mapper and the input data that it requires.").

clearCacheForDataRaptor, clearCacheForAllDataRaptor

For details about these methods, see [Cache for Omnistudio Data Mappers (Managed Package)](https://help.salesforce.com/s/articleView?id=xcloud.os_cache_for_dataraptors_and_integration_procedures.htm&release=264.0.0&type=5 "For the managed package runtime, Omnistudio offers multiple caching options to improve performance and minimize unnecessary data processing in Data Mappers. The two primary user-configurable caching types are Org Cache and Session Cache, which are available in the Data Mapper designer. These caching mechanisms are part of the Salesforce Platform Cache and are implemented through Vlocity Cache in Omnistudio with managed package runtime. Each serves a distinct purpose and comes with specific configuration considerations.").