Pricing Blog

passing array in url parameter does not work

  • fss21.-1366378814170730557

    fss21

    3 months ago

    Hi there! I am having issue of array in url parameter.
    Basically I want to set array value in url parameter so creating this formula
    1366378814338367609-image.png
  • In formula, it seems that it is working
  • fss21.-1366379433317109831

    fss21

    3 months ago

    but the value that is passed to xano is not array, only single value
  • So if the output in formula is [2,3]
    the value passed to xano is just 2
  • does anybody know why?
  • btw if i pass test value in toddle like this, array ([2,3}) is passed to xano succesfuly
    1366379732664320130-image.png
  • at first i thought it is encoding issue but can't solve it till today
  • lucasg-1366412693334134834

    Lucas G

    3 months ago

    URLs do not support objects
  • lucasg-1366413310429364275

    Lucas G

    3 months ago

    You could try casting the array into a string with a String node but you can still risk encoding issues
  • I’d highly recommend to pass objects through the body instead
  • fss21.-1366602144895074407

    fss21

    3 months ago

    thanks! it is get api so i can't pass the body.
    I ended up solving this by passing value as string and turn it into array of num in the backend