Call the System Property from Script include

Vasuki SD
Tera Contributor

I have to call the property from script include. 

 

Lmn.sf.awaiting is the property name.

 

Property values : Customer Validation, Validation data, Data customization, Custom Value.

 

it will check the flow flow designer short description if anything is matching then trigger the flow. But I am not able to return the data only.

 

I am calling this script include in one of the flow. Instead of property if i mention as below it is working.

tasks = "Customer Validation, Validation data, Data customization, Custom Value";

But i need to call from property only.

 

 

 

var LMNSFAwaiting = Class.create();
LMNSFAwaitingInfo.prototype = {
    initialize: function() {},
 
    taskInfo: function() {
        var tasks = gs.getProperty('lmn.sf.awaiting');
        tasks = tasks.split(",");
        //tasks = "Customer Validation, Validation data, Data customization, Custom Value";
        return tasks;
    },

    type: 'LMNSFAwaiting'
};

 

 

 

2 REPLIES 2

LJ86
Kilo Guru

The issue might be that the following line turns the string value into an array:

 

tasks.split(",");

 And your flow probably expects a string value since it's working with a hard-coded string...?

Sandeep Rajput
Tera Patron
Tera Patron

@Vasuki SD 

 

See if the following works.

 

var LMNSFAwaiting = Class.create();
LMNSFAwaitingInfo.prototype = {
    initialize: function() {},
 
    taskInfo: function() {
        var tasks = gs.getProperty('lmn.sf.awaiting');
        tasks = tasks.split(",");
        //tasks = "Customer Validation, Validation data, Data customization, Custom Value";
        return tasks.toString();
    },

    type: 'LMNSFAwaiting'
};