Create Custom Mapping Functions
If creating the mapping manually, the source dataset is not required to be ingested first; however you need to know what the source fields are.
Before you begin
You need:
- An entity model
- At least one source dataset
About this task
Procedure
What to do next
- If you use Quickstart,
- Navigate to the mapping step where you want to use the custom function.
- In the step details panel, enter the custom function name or select it from the dropdown lists.
- If you edit your flows manually,
- In the mapping definition file, use your custom function in the
sourcedFrom
value of the entity property node.{ "name" : "MyFlow-MyMappingStep", ... "properties" : { "my-entity-property": { "sourcedFrom": "MyCustomFunction( my-source-field-X )" } ... } }
- In the flow definition file, update the name of the mapping definition in your mapping step as needed.
"steps" : { ... "2" : { "name" : "MyMappingStep", ... "options" : { ... "mapping" : { "name" : "MyFlow-MyMappingStep", }, ... }, ... } }
- In the mapping definition file, use your custom function in the