---
schema_version: "1"
id: 23e5b71335a22c954d79f8484f93990fbedf25473e84eb209bcb69a27707c72a
title: Process.Plugin Data Type Conversions
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/apexcode/apex_plugin_datatype_conversions.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_plugin_datatype_conversions.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: 81275070997858d367ebc3090bfad91b7d62840da64f09005b3d6de58be25cd8
description: Understand how data types are converted between Apex and the values returned to the Process.Plugin. For example, text data in a flow converts to string data in Apex.
---
# Process.Plugin Data Type Conversions

Understand how data types are converted between Apex and the values returned to the Process.Plugin. For example, text data in a flow converts to string data in Apex.

![Tip](https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/images/icon_note_tip.png)

#### Tip

We recommend using the @InvocableMethod annotation instead of the Process.Plugin interface.

- The interface doesn’t support Blob, Collection, and sObject, data types, and it doesn’t support bulk operations. After you implement the interface on a class, the class can be referenced only from flows.
- The annotation supports all data types and bulk operations. After you implement the annotation on a class, the class can be referenced from flows, processes, and the Custom Invocable Actions REST API endpoint.
- Legacy Apex actions aren’t supported in auto-layout in Flow Builder. Legacy Apex actions are only available to be added in free-form in Flow Builder. Existing actions can be edited in both auto-layout and free-form mode.
- You can customize how invocable actions created with @InvocableMethod appear in Flow Builder by using the InvocableActionExtension metadata file. Control parameter order, add picklists, create custom headers, and build partial custom property editors.

| Flow Data Type | Data Type |
| --- | --- |
| Number | Decimal |
| Date | Datetime/Date |
| DateTime | Datetime/Date |
| Boolean | Boolean and numeric with 1 or 0 values only |
| Text | String |