map_value
map_value(valuemappingset_name: str, value:Any) -> str
Applies a Value Mapping Set to a provided value. This performs the same operation as when the Value Mapping column is specified on a field mapping.
When possible, the Value Mapping column should be used instead of map_value
within an integration hook.
The value mapping set must be connected to the current integration.
#
# Assuming the following exist:
#
# valuemappingset: 'SAMPLEVMS'
# valuemapping:
# From: 'Testing inputs'
# To: 'new output'
input.payload.test = 'Testing inputs'
map_value('SAMPLEVMS', input.payload.test)
Last updated
Was this helpful?