Script include in workflow
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-09-2024 10:43 PM
How to get retrun value of script include function in workflow.Any help is appreciated,Thanks!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-09-2024 10:47 PM
Sample script below to collect return from script include:
var input = current.something; // Set your input value here
var result = new MyScriptInclude().myFunction(input);
Please Mark ✅Correct if this solves your query and also mark 👍Helpful if you find my response worthy based on the impact.
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-09-2024 10:53 PM
Hello @Maddysunil : if there are no parameters in my function, can the above script works? As i used the same and it is not working, Thanks!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-09-2024 10:57 PM
If there is no parameter then just use:
var result = new MyScriptInclude().myFunction();
Note: Replace script include name with your actual script include and function name
Please Mark ✅Correct if this solves your query and also mark 👍Helpful if you find my response worthy based on the impact.
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-09-2024 11:02 PM
Yes i used the same and i m returning count from this script include but in workflow the count always shows as 0. Thanks!