I have a web hook that makes a new row in Equipment table into the maintenance app, when a new truck is added from the annualloadbook app.
I had an error for when testing for a bad character “[” I removed the bad Character and the error went away but the web hook still does not work
{
“Action”: “Add”,
“Properties”: {
“Locale”: “en-US”
},
“Rows”:
{
“ID”: “<<[id_truck]>>”,
“Unit Number”: “<<[Unit #]>>”,
“Make”: “<<[Make]>>”,
“Model”: “<<[Model]>>”,
“Vin”: “<<[Vin]>>”,
“Year”: “<<[Year]>>”,
“License Plate”: “<<[License Plate]>>”,
“Image”: “<<[Image]>>”,
“Created By”: “<<[CreationEmail]>>”,
“Created Date”: “<<[CreationDateTime]>>”
}
}
I also have a web hook from the Maintenance app to the annualloadbook app that changes the date of the Inspection.It works when i have the bad character in the web hook but does not work when its not in the expression
{
“Action”: “Edit”,
“Properties”: {
“Locale”: “en-US”
},
“Rows”: [
{
“id_truck”: “<<[ID]>>”,
“Last Inspection”: “<<[Created Date]>>”
}
]
}
The two app are mine so could i use the “Appsheet API” instead of “Custom”? I tried to do this Appsheet changed the path by selecting the destination app/table Name then in the body I added the table names
I tried it both without the [_THISROW].[]
And without with no errors however it still doesn’t work
If i add the brackets [ after ROWS [ it cereates an error
{
“Action”: “Add”,
“Properties”: {
“Locale”: “en-US”,
“Location”: “47.623098, -122.330184”,
“Timezone”: “Eastern Standard Time”
},
“Rows”:
{
“ID”: “<<[_THISROW].[id_truck]>>”,
“Unit_Number”: “<<[_THISROW].[Unit #]>>”,
“Make”: “<<[_THISROW].[Make]>>”,
“Model”: “<<[_THISROW].[Model]>>”,
“Equipment_Type” “<<[_THISROW].[Equipment Type]>>”
“Vin”: “<<[_THISROW].[Vin]>>”,
“Year”: “<<[_THISROW].[Year]>>”,
“License_Plate”: “<<[_THISROW].[License Plate]>>”,
“Image”: “<<[_THISROW].[Image]>>”,
“Notes”: “<<[_THISROW].[Notes]>>”,
“Status”: “<<[_THISROW].[Status]>>”,
“Created_By”: “<<[_THISROW].[CreationEmail]>>”,
“Created_Date”: “<<[_THISROW].[CreationDateTime]>>”
}
}
Web Hook solved By Suvrutt
I made the KEY columns in both app match [ID] that is what made the bot stable