Why is my array of numbers converted to strings:
Post Content:
Hi there!
I’m encountering an issue where my array of numbers is being converted to strings in my workflow. Here’s the context:
Result from the workflow:
[
{
"deletePages": [
"0"
]
}
]
Expected Behavior:
The deletePages
array should remain as numbers, not strings.
Communication Setup:
{
"url": "/edit",
"method": "POST",
"body": {
"deletePages": "{{parameters.deletePages}}"
}
}
Mappable Parameters in the Make App:
{
"name": "deletePages",
"type": "array",
"label": "Delete Pages",
"required": false,
"default": [1]
}
I suspect the issue is related to how arrays are handled in Make.com. Is there a way to ensure the deletePages
array stays as numbers instead of being converted to strings? Any advice or solutions would be greatly appreciated!
Thanks in advance!
Result from the workflow:
[
{
“deletePages”: [
“0”
]
}
]
Communication:
{
“url”: “/edit”,
“method”: “POST”,
“body”: {
“deletePages”: “{{parameters.deletePages}}”
}
}
Mappable Parameters in the Make App:
{
“name”: “deletePages”,
“type”: “array”,
“label”: “Delete Pages”,
“required”: false,
“default”: [1]
}