Call the System Property from Script include
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-28-2024 03:02 AM
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'
};
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-03-2024 08:28 AM - edited 07-03-2024 08:28 AM
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...?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-03-2024 08:56 AM
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'
};