I need to parse the packageNumber and depending on the first 3 chars I need to match it to a carrier number
{{switch(substring(6.packageNumber; 0; 3); “‘062’”; 100556; “JJD”; 7041; 102; 1161; 311; 100005)}}
the problem is that DPD (AT) uses 062 with a leading zero
sending me via slack just {{substring(6.packageNumber; 0; 3)}} I do get 062
But when I want to save the module the leading zero always gets removed by MAKE:
- I Enter 062 with leading zero
- I click OK
- I reopen the HTTP Request module and it got changed to this
I tried single quotes (as in the above sample) and double quotes but this does not work