Asigning new variables

Questions and answers about Plum Fuse+

Moderators: admin, support

  • Author
  • Message
Offline

pivot-rock-dev

  • Posts: 2
  • Joined: Thu Apr 04, 2019 6:53 am

Asigning new variables

PostThu Apr 04, 2019 6:58 am

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

support

  • Posts: 3627
  • Joined: Mon Jun 02, 2003 3:47 pm
  • Location: Boston, MA

Re: Asigning new variables

PostThu Apr 04, 2019 8:53 am

Hi,

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

Regards,
Plum Support
Offline

pivot-rock-dev

  • Posts: 2
  • Joined: Thu Apr 04, 2019 6:53 am

Re: Asigning new variables

PostFri Apr 05, 2019 9:48 am

I'm using Fuse+ editor.
Offline

support

  • Posts: 3627
  • Joined: Mon Jun 02, 2003 3:47 pm
  • Location: Boston, MA

Re: Asigning new variables

PostFri Apr 05, 2019 11:52 am

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

Return to Plum Fuse+ Q&A

Who is online

Users browsing this forum: No registered users and 1 guest

cron