We've Moved! Please visit our new and improved forum over at our new portal: https://portal.plumvoice.com/hc/en-us/community/topics

Asigning new variables

Questions and answers about Plum Fuse+

Moderators: admin, support

Post Reply
pivot-rock-dev
Posts: 2
Joined: Thu Apr 04, 2019 6:53 am

Asigning new variables

Post 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.

support
Posts: 3632
Joined: Mon Jun 02, 2003 3:47 pm
Location: Boston, MA
Contact:

Re: Asigning new variables

Post 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

pivot-rock-dev
Posts: 2
Joined: Thu Apr 04, 2019 6:53 am

Re: Asigning new variables

Post by pivot-rock-dev »

I'm using Fuse+ editor.

support
Posts: 3632
Joined: Mon Jun 02, 2003 3:47 pm
Location: Boston, MA
Contact:

Re: Asigning new variables

Post 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

Post Reply