Frequently Asked Questions (FAQ)
Find quick answers to common questions in Parloa.
Last updated
Was this helpful?
Find quick answers to common questions in Parloa.
Last updated
Was this helpful?
Yes, you can seamlessly incorporate ES6/ES2015 syntax within Parloa's Javascript fields. Thanks to our integration with the V8 Javascript engine by Google and the incorporation of the latest Long Term Support (LTS) version of Node.js, Parloa is equipped to handle all the functionalities supported by these versions of V8.
To save a JavaScript Object in Parloa, ensure to wrap your object in parentheses. For instance, use ({"example0" : "0", "example1" : "1"})
. Without the parentheses, Parloa interprets the expression as invalid JavaScript. Alternatively, you can use an anonymous function, like (() => ({"eventdatatest1" : "1", "eventdatatest2" : "2"}))()
, to achieve the same result.
Yes, the 'Phone number' Platform Feature can be used in a debugging release on the Phone Platform without a standard API key. However, our integration with TENIOS does require an API key for this feature. For debugging purposes, you can enter any value in the API key field. This placeholder will not impact the feature's functionality during the debugging stage.
return
statement necessary to return a storage variable to a block in Parloa?No return
statement is needed to return a storage variable to a block. Unless you define a whole function inside the block, Parloa will return the last variable it "saw.â Trying to use a return
statement outside of a function or to return something to the block will result in an error.
blocks function on the if / else if / else
principle line by line. The if
/else
structure is already included â each space in the block contains only the code or condition that should evaluate to true
or false
.
If you write code that requires you to create (initialize) a JavaScript variable, it's wise to set that inside a function. If your call flow loops back, or if you try to use the same variable name later, Parloa will throw an error.
So instead of doing this:
let date = new Date();
let dayDiff = (date.getDate() â 1);
Do this:
function return_yesterday() {
let date = new Date();
let dayDiff = (date.getDate() â 1);
return dayDiff
}
return_yesterday();