- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-09-2022 07:28 AM
Hi all,
We want to use a dynamic condition in the trigger condition of a flow designer. We have made a script include and want to call the same in the trigger condition.
Below is the one that we are using. For the first condition, it is working absolutely fine. The moment we are calling the script include, it's not working.
Note: We have tried using the same method in the filter conditions of reports, and there it's working absolutely fine. But here, in flow designer it's not working.
Regards,
Sudhangshu Das
Solved! Go to Solution.
- Labels:
-
Script Debugger
-
Scripting and Coding
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-09-2022 08:42 AM
Hi Anil,
We have tried it again, and it's working. This is what we used:
Here, what's happening is,
We want to receive notifications according to this filter condition.
But what's happening is, when we are using just the above two conditions, it is triggering the notification.
But, the moment we are using the third condition, even though we are getting the correct record in the filter, somehow it is not triggering the notification.
Thanks & Regards,
Sudhangshu Das

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-09-2022 08:06 AM
Can you please share what your script include contains and what it returns.
I did something like this:
And our script include is like below:
var XYZ= Class.create();
XYZ.prototype = {
initialize: function() {
},
getRefQual:function(itemId){
gs.info('Item is '+JSON.stringify(itemId));
return 'admin';
},
type: 'XYZ'
};
The result is like below:
Thanks,
Anil Lande
Thanks
Anil Lande
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-09-2022 08:11 AM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-09-2022 08:39 AM
Hi,
As Shubham has suggested convert your script include into a Class. You have created classless script include which may not work in this scenarao.
Create new script include and add this function in newly created script include and call it using the way suggested previously.
Thanks,
Anil Lande
Thanks
Anil Lande
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-09-2022 08:21 AM
Hi Anil,
We have tried using the way you have done it, but for some reason, it is not working for us.
This is the script include that we have written.
And we have tried calling it using:
javascript: new getdeveloper().getLastResultDeveloperSuite();
Can you identify what can be the issue?
Anyways, thanks for the reply.
Regards,
Sudhangshu Das
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-09-2022 08:42 AM
Hi Anil,
We have tried it again, and it's working. This is what we used:
Here, what's happening is,
We want to receive notifications according to this filter condition.
But what's happening is, when we are using just the above two conditions, it is triggering the notification.
But, the moment we are using the third condition, even though we are getting the correct record in the filter, somehow it is not triggering the notification.
Thanks & Regards,
Sudhangshu Das