- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-23-2022 06:29 AM
I keep getting the same error; "Error: missing name after . operator" when im trying to run this script action in Flow Designer. I was just trying to enter a string then append some text to it.
(function execute(inputs, outputs) {
// ... code ...
var input = inputs.in;
input += " i am adding extra text to this string...";
outputs.out = input;
})(inputs, outputs);
Solved! Go to Solution.
- Labels:
-
Scripting and Coding
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-23-2022 06:50 AM
I figured it out myself, for some reason you can't use "in" or "out" as the name for inputs/outputs. Very odd...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-23-2022 06:37 AM
Hi,
so what came in the input variable?
Did you add gs.info() and check?
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-23-2022 06:50 AM
I figured it out myself, for some reason you can't use "in" or "out" as the name for inputs/outputs. Very odd...