Multipart Form Data (multipart/form-data)

Hello everyone. I'm trying to configure an Integration with Content_Type "application/x-www-form-urlencoded" but I don't know how to configure the input parameters, 
and I tried a thousand ways and I can't, can someone help me? Any example....

cURL (Postman)
curl --location --request POST 'myService.corp/.../token' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--data-urlencode 'scope=customer-profile-oa2p_1.0.0 card-contract-oa2p_1.0.0 demand-deposit-account-oa2p_2.0.0 deposit-account-oa2p_2.0.0 current-account-transactions-oa2p_2.0.0 credit-card-statements-oa2p_2.0.0 card-oa2p_1.0.0 credit-card-statements-oa2p_2.0.0 card-transactions-oa2p_1.0.0 current-account-transactions-oa2p_2.0.0' \
--data-urlencode 'grant_type=client_credentials' \
--data-urlencode 'client_id=OreHn9wPTYoHG45gNS7EgH-p5MLGBIp9LDDGrL5JLAs' \
--data-urlencode 'client_secret=jE_lYqmYjyFCOpebCcZkGW0o0tS318S73bojDgsVoMU'




APPIAN integration:

  Discussion posts and replies are publicly visible

Parents
  • 0
    Certified Lead Developer

    That is simple. "application/x-www-form-urlencoded" is different from "multipart/form-data".

    The HTTP body must look like this

    name=Marty+Franco&address=Vine+Lane

    You can use the function urlwithparameters to encode your data. Provide a static URL and drop the first two characters. Something in the line of:

    mid(
      urlwithparameters(
        "/",
        {"key1", "key2"},
        {"value1", 42}
      ),
      3,
      10000
    )

Reply
  • 0
    Certified Lead Developer

    That is simple. "application/x-www-form-urlencoded" is different from "multipart/form-data".

    The HTTP body must look like this

    name=Marty+Franco&address=Vine+Lane

    You can use the function urlwithparameters to encode your data. Provide a static URL and drop the first two characters. Something in the line of:

    mid(
      urlwithparameters(
        "/",
        {"key1", "key2"},
        {"value1", 42}
      ),
      3,
      10000
    )

Children
No Data