Skip to content

Commit 624ff81

Browse files
Add Map Enum Transformation Method (#33)
This pull request adds documentation for a new enum mapping transformation method to the `templates/initial_domain_mapping_boilerplate.plain` file. The update explains how to configure the mapping of external enum fields to DevRev enums using the new method. Related issue: https://app.devrev.ai/devrev/works/ISS-210921 --------- Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 1364b7a commit 624ff81

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

templates/initial_domain_mapping_boilerplate.plain

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414

1515
- The External Transformation Method is a transformation method that is used to map an external field to a DevRev stock field. To apply The External Transformation Method to The Stock Field Mapping Field, set the Metadata extraction transformation method type to "use_directly", "use_as_array_value", "use_rich_text", depending on the context. Field "primary_external_field" should be set to the name of the external field to map.
1616

17+
- The Map Enum Transformation Method is a transformation method that is used to map an external field enum to a DevRev enum. To apply The Map Enum to The Stock Field Mapping Field, set the Metadata extraction transformation method type to "map_enum". If using The Map Enum, the value of the field "transformation_method_for_set" inside The Stock Field Mapping Field should be `{"forward": "<value>", "transformation_method": "map_enum", "is_array": false}`, where `<value>` is a JSON object. This JSON object has keys, which are all possible enum values of the external field. Each key has a value, which is also a JSON object `{"value": "<DevRev_value>"}`, where `<DevRev_value>` is the enum value to which the external field enum maps.
18+
1719
- The DevRev Record Transformation Method is a transformation method that is used enable use of a fixed reference to something in DevRev. To apply The DevRev Record Transformation Method to The Stock Field Mapping Field, set the Metadata extraction transformation method type to "use_devrev_record".
1820

1921
- The Shard Mode Type is an option in The Initial Domain Mapping JSON object through which you can specify shard type for the mapping for the given record type.

0 commit comments

Comments
 (0)