Invalid output mapping format for unmet conditions
When configuring output mapping for invalid conditions ("Map output data if condition is not valid") via the UI, the configuration is not stored in the correct format. It instead looks like this (example for a SetParameterValue
action with a ParameterIsNotEmpty
condition):
"output_mapping": {
"value": {
"name": "action.contact.contact_id",
"label": "Action::Contact::CiviCRM ID"
}
}
when it should be that way:
"output_mapping": {
"value": "action.contact.contact_id"
}
I.e. the output parameter (called value
in this case) is being set to an array with name
and label
as keys instead of just the name of the variable to use.
A workaround is to export the configuration, correct it manually and re-import it.
I'm attaching the complete JSON export of the form processor. Note, that it uses actions provided by the Extended Contact Matcher (XCM) extension, but that should not be the matter, as I could reproduce it with other actions as well.