Issue with Customizable Collection Parameter in Make.com Custom App

Hi everyone,

I’m working on integrating our APIs into a custom app on Make.com, and I’ve encountered an issue with creating a dynamic collection parameter.

Use Case:
I want to allow users to add custom key-value pairs that can be dynamically expanded by clicking “Add item.” The ultimate goal is to send a customizable JSON like this in an HTTP API request:

{
  "custom_key_1": "custom_value_1",
  "custom_key_2": "custom_value_2",
  ...
}

I’ve gone through the collection parameter documentation here, but I haven’t found anything directly related to this use case. I also attempted to use complex arrays and tried converting them into a collection based on the array functions outlined here, but I couldn’t get it to work as expected.

Has anyone faced a similar situation or found a solution for creating dynamically expandable custom key-value pairs? Any help or guidance would be greatly appreciated!

Thanks in advance!

Hi,
You can generate a JSON formatted string representing those key value pairs. Then utilize Make’s JSON parser module to convert this string into an array of collections.

can you explain me with some example if possible

It sounds like you need a more flexible way to handle user inputs, and it can be tricky when dealing with custom JSON structures. I had a similar issue a while back, and what worked for me was using the “Create Object” feature. Instead of trying to directly map the collection, I set up an intermediary step where I manually built the JSON object using inputs from users.

It’s not as straightforward, but it gave me the control to handle custom keys and values without issues. You might also want to check if there’s a way to loop through the inputs dynamically within Make.com to build your template collection. Hope this helps, and good luck with your integration! :blush:

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