Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,365,002
Community Members
 
Community Events
168
Community Groups

Operating with multi-select fields in Confiforms IFTTT

I am playing with Confiforms multiselect fields and was wondering how to access members in that array so that I can pass them to another IFTTT service url as parameter. See the example below:

 

  1. I transform multi-select array in this way in the format I need
    • [entry.multi.transform(label).join(&name=)]
  2. It makes the result in an array and adds &name= in between:
    • Element1 Name&name=second Name1&name=one More Name
  3. I add transformed array to 'Service URL' (one of the options):
    • /groups?permission=PROJECT_WRITE&name=[entry.multiWrite.transform(label).join(&name=)]
    • /groups?permission=PROJECT_WRITE&name=[entry.multiWrite.transform(label).join(&name=)]
  4. Then the error result the text is different:
    •  all the spaces are replaced with +, e.g. 'Element1+Name'
    •  &name= is replaced to %26name%3D
    •  &name= is replaced to %26name%3D

 

Is it possible to turn off this unnecessary character transformation?

If not, then how can I access element one by one and fire a lot of IFTTT actions depending on the size of multiselect if this is not possible? 

 

 

1 answer

Hi

Before sending the request to your service the parameters get URL encoded. This is what happens. Why this is a problem? 

Alex

the consumer of API doesn't like percentage signs :) Is it possible to turn off this encoding?

 

 

I would like to use multi-select values and each second value start with "&name=". E.g. item1&name=item2&name=item3.

This construct is done by [entry.multi.transform(label).join(&name=)] and would like that won't be transformed to %%%% in REST URI

We need to properly URL encode the URLs before doing the requests - this is the way it works. 

And you need to url decode the parameters on your consumer service. Just like everybody does

At the moment there is no way to "turn this off", sorry

Alex

Ok, will not use this element then :)

Suggest an answer

Log in or Sign up to answer
TAGS

Atlassian Community Events