Data arrives randomly

Hello, I’m new to N8N and I’m having a problem with some json data that arrives randomly, and I need to get information, but every time I receive the information, it arrives in a different position, see an example below:

“custom_variables”:[

{

“name”:“criador”,

“value”:“332”

},

{

“name”:“interval”,

“value”:“monthly”

},

{

“name”:“plan”,

“value”:“user_332”

},

{

“name”:“type”,

“value”:“subscription”

}

],

That is, if I receive a new request each “name” and “value” will come in different positions!

Hey @JohnGyn

Can you complete the template so that we know what version you are running and how you are starting your workflow.

I managed to solve it, it was much simpler than I imagined, this post can be closed :slight_smile:

1 Like

Great to hear! Can you please post the solution here, that in case somebody else has the some problem in the future, they can find it here. Thanks!

To tell you the truth, it was something very simple, all I had to do was combine all the variables and check if the word you wanted to search for existed.

3 Likes

Thank you very much. Is very appreciated!

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.