---
schema_version: "1"
id: 661060d874ed8a54b90aff6506bbcfe51f1e8d3e3b73c7cb2556dfb51bac8dd5
title: List Input in Custom Functions (Managed Package)
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/xcloud/264-0-0/os_list_input_in_custom_functions.md
canonical_url: https://help.salesforce.com/s/articleView?id=xcloud.os_list_input_in_custom_functions.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: 2a8e8e071db126bbabe0755202406abf0eb186002d393a9d734c331f272a64e1
description: For the managed package runtime, if an input to your custom function is of the type List<Object>, the input is saved to a VLOCITY-FORMULA-LIST key. To retrieve the input, use code that retrieves this key.
products:
  - Omnistudio
release: "264"
---
# List Input in Custom Functions (Managed Package)

For the managed package runtime, if an input to your custom function is of the type `List<Object>`, the input is saved to a `VLOCITY-FORMULA-LIST` key. To retrieve the input, use code that retrieves this key.

![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 example:

```
static List<Map<String, Object>> FUNCTION(List<Object> inputs)
{
       List<Object> listInput = ((Map<String, Object>)inputs[0]).get('VLOCITY-FORMULA-LIST');
       Object variableInput = inputs[1];

      // Rest of Function
}
```

For a full working example, see the toObjArray function in [Sample Apex Code for a Custom Function in Omnistudio for Managed Packages (Managed Package)](https://help.salesforce.com/s/articleView?id=xcloud.os_sample_apex_code_for_a_custom_function_in_vlocity.htm&release=264.0.0&type=5 "For the managed package runtime, an Apex class implements methods for three custom functions in Omnistudio for Managed Packages. Integration Procedures and Omnistudio Data Mappers can use these functions to convert a list to an array, replace one character with another, or reformat phone numbers. The class and invokeMethod of custom functions must be global.").