https://discord.gg/botpress logo
I successfully created a webhook and
# 💻developers
m
I successfully created a webhook and server that sends inventory level updates to botpress and the botpress webhook receives the payload. How can I use this to update inventory tables based on the SKU received? I've tried a few different workflows, none update the table succesfully. Or is there another way? https://cdn.discordapp.com/attachments/1121494527727902891/1346539193685508187/image.png?ex=67c88dd9&is=67c73c59&hm=ee03c11f82876d6bbbfc601943260ee89c59bd1ec939989f23912006ee286357&
w
what have you tried so far? what errors do you get ,
m
I setup a few cards to find the records, process them and then update the table but it doesnt seem to be working
im sure that im more than likely doing some small few details wrong
have you done anything similar?
w
if you want to add or update lots of records, you should use the botpress client within an execute code card
b
yeah what 000Bo said. create a object variable and save your payload response data to that variable, then write the custom execute code card to update your table with the keys in the object variable you created and saved the response.data to, then your custom execute code will update your table that way for lots of items.
2 Views