Accesing keys inside objects for trigger
-
Hi! I’m a pro user so I have access to the webhooks feature. The API I’m working with, is sending me this information:
{ "id": "1234567890123456789", "creation_date": 12345678, "event": "WAITING_PAYMENT", "version": "2.0.0", "data": { "product": { "id": 213344, "name": "Product Name", "has_co_production": false } }
So, let’s say I want to target the key id, inside product, which is inside data. On the automator, if I use the samples option when testing, it gets only the key “data” (where everything I need is inside of). I’ve tried placing:
-data.product.id
-product.id
-data product id
-data[product[id]]
And nothing works. I know because I’ve been monitoring some testing request and they all give the same error: the API is not sending the key my server need. Which I guess it’s because I didn’t set it properly. So, what would be the format or way I should use to target that specific key, when creating the trigger for my recipe?
- The topic ‘Accesing keys inside objects for trigger’ is closed to new replies.