I have been trying to find a way to define dynamic output fields for a hook trigger so that they would be available in the later steps but been having no luck. I saw this post which would be similar to my case, but no input values will be taken from the user.
This is the a sample payload for the performList:
{
"id": "123456",
"customFields": {
"fieldName1": "fieldValue1",
"fieldName2": "fieldValue2",
"fieldName3": "fieldValue3",
}
}
The field names would vary depending on the account subscribed to the hook, and when there are changes made to the field values, the payload will then include a to and from fields for the field that changed, i.e.:
{
"id": "123456",
"customFields": {
"fieldName1": "fieldValue1",
"fieldName1To": "fieldValue1To",
"fieldName1From": "fieldValue1From",
"fieldName2": "fieldValue2",
"fieldName3": "fieldValue3",
}
}
How can I define the output fields for the To/From fields so that these would be available in the action step? Any and all help would be greatly appreciated. Thank you!
P.S. I’m using the CLI for the integration.
Best answer by temr
View original