- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-27-2024 03:38 AM
Hi All,
I have a requirement for the script execution in the flow action. We have created a Custom table with a field type as "Script". Now, If any script is written in that field. I need to run that script in the flow action. How can I achieve this? I tried by giving the "input.variable" in the Script flow. But no luck and I tried to call directly the field inside the flow script but also it didn't worked. But when I have written the script in the custom flow action script and defined only 1 input. It worked. Can anyone help me on this? PFA images for ref.
Thanks,
Ripunjai
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-28-2024 04:07 AM
Hi @Community Alums
Let me give you a step by step explanation. Suppose I have a custom table 'u_testing' with a Script type column 'u_inputscript' which has a simple script to return sum of two numbers. Refer below screenshots :
Now if the following script from Scripts-Background, I will get the sum of both the numbers i.e. 6
We are already passing the GlideRecord reference while calling the evaluateScript method. It expects the GlideRecord reference and the name of the column in which your script resides. Hope it clears your query.
Thanks & Regards
Amit Verma
Please mark this response as correct and helpful if it assisted you with your question.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-28-2024 03:45 AM
Hi @Amit Verma ,
But the GlideRecord should be called from the Custom table field. If I directly add the script in the Flow action without any GlideScopedEvaluator the script will execute.
Thanks,
Ripunjai.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-28-2024 04:07 AM
Hi @Community Alums
Let me give you a step by step explanation. Suppose I have a custom table 'u_testing' with a Script type column 'u_inputscript' which has a simple script to return sum of two numbers. Refer below screenshots :
Now if the following script from Scripts-Background, I will get the sum of both the numbers i.e. 6
We are already passing the GlideRecord reference while calling the evaluateScript method. It expects the GlideRecord reference and the name of the column in which your script resides. Hope it clears your query.
Thanks & Regards
Amit Verma
Please mark this response as correct and helpful if it assisted you with your question.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-29-2024 01:32 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-23-2024 11:05 PM
Hi @Amit Verma ,
Can we fetch the RITM number from the Flow designer script and add in the custom table script? I want to get the variable from the RITM. Is it possible to get it?
I tried by giving putvariable but it did not worked. Any alternative?
Thanks,
Ripunjai
