Frequently Asked Questions (FAQ)

Find quick answers to common questions in Parloa.

Can I utilize ES6/ES2015 syntax in Parloa's Javascript fields?

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.

How can I correctly save a JavaScript Object in a Storage block in Parloa?

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.

Is it possible to integrate the 'Phone number' Platform Feature in a debugging release on the Phone Platform without an API key?

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.

Is a 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.

How do condition blocks function in Parloa?

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

Why is it advisable to set JavaScript variables inside a function in Parloa?

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();

Last updated