Hi @OmriNyx,
This is not really a bug with Make.
Square brackets in JSON key names are very bad, it shows poor webhook design.
To get around this, you will need to set the Webhook “JSON Pass-through” to YES (it is “No” by default), when creating or editing a webhook.
Then, you will be able to replace the square brackets in a Parse JSON module.
Then, mapping the msaFiles
variable (now without the square brackets), won’t have any further issues and will contain the values.
Module Export
You can copy and paste this module export into your scenario. This will paste the modules shown in my screenshots above.
-
Copy the JSON code below by clicking the copy button when you mouseover the top-right of the code block
-
Enter your scenario editor. Press ESC to close any dialogs. Press CTRLV (paste keyboard shortcut for Windows) to paste directly in the canvas.
-
Click on each imported module and save it for validation. You may be prompted to remap some variables and connections.
Click to Expand Module Export Code
JSON - Copy and Paste this directly in the scenario editor
{"subflows":[{"flow":[{"id":132,"module":"json:ParseJSON","version":1,"parameters":{"type":""},"mapper":{"json":"{{replace(1.value; \"/\\[\\]\"\":/g\"; \"\"\":\")}}"},"metadata":{"designer":{"x":683,"y":-311,"name":"Webhook Square Bracket Fix"},"parameters":[{"name":"type","type":"udt","label":"Data structure"}]}}]}],"metadata":{"version":1}}
Hope this helps! Let me know if there are any further questions or issues.
— @samliew
P.S.: Did you know, the concepts of about 70% of questions asked on this forum are already covered in the Make Academy. Investing some effort into it will save you lots of time and frustration using Make later!