Webhook to do batch adds error 400

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>>
]
}

 

 

Kyle_Love_0-1644388795052.png

Component Events

Kyle_Love_0-1644517752071.png

Kyle_Love_1-1644517774991.png

Maintenance Events:

Kyle_Love_2-1644517817191.png

Kyle_Love_3-1644517839703.png

Component Master

Kyle_Love_4-1644517901482.png

Kyle_Love_5-1644517918249.png

 

 

 

 

0 5 181
5 REPLIES 5
Top Labels in this Space