Page 1 of 1

Asigning new variables

Posted: Thu Apr 04, 2019 6:58 am
by pivot-rock-dev
Hi,
to make a successfull api call to 3rt party paymnt system I need to send a date in specific format: "YYYY-MM". But when I try to assign a "-" symbol to a variable, it gets ignored. I've tried multiple ways of variable creation, even used custom js to combine year+"-"+month. It still reads only numbers and "-" is ignored. Please, help me figure it out.

Re: Asigning new variables

Posted: Thu Apr 04, 2019 8:53 am
by support
Hi,

Thank you for reaching out.
Can you specify which language you are attempting to make the API call in?

Regards,
Plum Support

Re: Asigning new variables

Posted: Fri Apr 05, 2019 9:48 am
by pivot-rock-dev
I'm using Fuse+ editor.

Re: Asigning new variables

Posted: Fri Apr 05, 2019 11:52 am
by support
Hi,

Using the JavaScript module you can concatenate the values and symbols together.
For example:

Code: Select all

month = 04;
year = 2019;
dash = -;
date = year.concat(dash,month);
This will set date equal to:
2019-04

Please reach back out if you have any further questions.

Regards,
Plum Support