How to get data when field name changes each time

Hi, everyone. I’m stuck. I’m trying to build AI summaries of sent email - however, we’re using a specific platform, and the web hook returns data like To Address, Body and Subject inside of the message ID, which of course changes with every message.

Is there any way to work with this where the field name Messages < (Message ID) changes each time? I need the data one level beneath that.

Hi @Sam_Villano , can you post screenshots of 2 different cases when the field name changes?, it’ll help us understand better what you’re trying to say.

To do this, you can use these built-in functions in a Set Multiple Variables module:

These functions may have also been covered in the Make Academy tutorials — refer to the Make Academy Course Overview to learn more.

Here’s an example of how you can use these functions together:

{{ flatten(toArray(1.messages)) }}
(copy-paste the above into the field, or type it exactly as shown)

Hope this helps! Let me know if there are any further questions or issues.

@samliew

1 Like