I’m trying to do product monitoring, where it may return 1 or more products, and for that I need to return the list in the embed, but I’ve tried every way and I can’t configure the Raw JSON of the embeds.
Error:
Cannot read properties of undefined (reading ‘error’)
My Workflow
I need something like this product name and link, remembering that the code can return 1 or more products.
Hi @Mauricio_Bachega welcome to the
community,
I just made a small adjustment to the Raw JSON and here’s how you can structure it so it works:
{
"title": {{ JSON.stringify($json.embeds[0].title )}},
"description": {{ JSON.stringify($json.embeds[0].description) }},
"color": {{ $json.embeds[0].color }}
}
Here’s the working version of the workflow:
I hope this helps resolve the issue!
Thank you so Much, this helped me alot!! Have a nice day!!