I am using a "call a webhook task" when a record is created to generate a set of predefined child tasks
This body Works and will generate the correct number of child records, but only referencing the hard coded component_master_id
{
"Action": "Add",
"Properties": {
"Locale": "en-US",
"Timezone": "Central Standard Time"
},
"Rows": [
<<Start: Filter(component_master, CONTAINS([pump_type], [_THISROW].[asset_id].[tri_or_quint]))>>
{
"maintenance_event_id": "<<[_THISROW].[id]>>",
"component_master_id": "4379e5e7",
"changed_dropdown": "N",
"edit_increment": 0
},
<<End>>
]
}
but when i change line 11 it gives me and error 400 and does not create any rows, the bot is successful though in this case. Any ideas on what is going on here. The payload actually looks correct in the log, and I don't have any valid if constraints or anything that might cause it not to work that I can think of.
{
"Action": "Add",
"Properties": {
"Locale": "en-US",
"Timezone": "Central Standard Time"
},
"Rows": [
<<Start: Filter(component_master, CONTAINS([pump_type], [_THISROW].[asset_id].[tri_or_quint]))>>
{
"maintenance_event_id": "<<[_THISROW].[id]>>",
"component_master_id": "<<[id]>>",
"changed_dropdown": "N",
"edit_increment": 0
},
<<End>>
]
}
Component Events
Maintenance Events:
Component Master
User | Count |
---|---|
37 | |
31 | |
29 | |
22 | |
18 |