Managing Dynamic Data in Workflow Automation

Dear members,

I hope you are doing well. I’m currently facing an issue in my workflow with Make.com, and I would appreciate your assistance.

In the first step of this workflow, I receive the following response: {{1.data.tid}}, which, in this example, is equal to 111.

In the second step, I use {{1.data.tid}} as input to generate an output like: {{2.data.111.url}}.

image

However, this approach doesn’t work for new workflows since the number 111 can change. I’m wondering how I can dynamically incorporate {{1.data.tid}} into the response of the second module to adapt to different workflows, as the output of the second module will be used in the third module.

image

Unfortunately, I’m unable to provide a detailed screenshot of the workflow due to confidentiality reasons within my company. However, I have made some screenshots as mockups to help illustrate the issue.

I appreciate your help in advance.

Best regards,

You’ll need to use toArray() so you can get the key and values separately, then if you’re only expecting a single item in data, use first().

{{ first(toArray(2.data)) }}

Output

Screenshot_2024-01-08_160116

2 Likes

Perfect :star_struck:

Thank you very much !

2 Likes