Double quotes Issue

My code is sending double quotes in the “body”: “key=value&value={{parameters.value}}”, does anyone have any suggestions?

example:
i write on scenario: test123
i get on my system: test123"

really anoying :sweat_smile:

Communication

{
	"url": "/users/{{parameters.id}}/custom_fields/{{parameters.custom_field_id}}",
	"method": "POST",
	"headers": { "Content-Type": "application/x-www-form-urlencoded", "accept": "application/json" },
	"qs": { },
	// Body of the request
	"body": "key=value&value={{parameters.value}}"
}

mappable parameters

[
    {
        "name": "id",
        "type": "text",
        "label": "User ID",
        "required": true
    },
    {
        "name": "custom_field_id",
        "type": "select",
        "label": "Custom Field ID",
        "required": true,
        "options": "rpc://ListOfAllAccountCustomfields"
    },
    {
        "name": "value",
        "type": "text",
        "label": "Value",
        "required": true
    }

]

Hi @fhelipy_dias,

I’ve not had this problem, but have you tried setting the “type” to “multipart/form-data”. Like this:

{
	"url": "/users/{{parameters.id}}/custom_fields/{{parameters.custom_field_id}}",
	"method": "POST",
	"type": "multipart/form-data",
	"body": "key=value&value={{parameters.value}}"
}

According to the docs (Make.com - Custom App Documentation), “the appropriate value of Content-Type header will be set automatically based on what type you have specified”.

Let us know how it goes because this may help out a future user.

Regards, Terry.

1 Like

yess thank you Terry this type worked !

Hi @fhelipy_dias .

Excellent! Happy to help.

Please could you mark my answer as the solution if it solved your original question, because this will help future users having the same problem.

Good luck with your custom app!

Regards, Terry.

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