Error: undefined is not a function.,Detail: undefined is not a function.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-25-2023 07:11 AM
Error: undefined is not a function.,Detail: undefined is not a function.
Getting the above error when try to test the Action in a flow which should fetch the API key from the API Key Credentials table through script include.
the script i'm writing in the action to fetch the API key from the script include
return (new global.ScriptIncludename().functionname());
Note: the flow Action was in Scope application and the Script include was written in global level
Can you please help me out on this

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-28-2023 03:00 AM
What do you mean with the whole action? When testing it from a Flow?
Help others to find a correct solution by marking the appropriate response as accepted solution and helpful.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-28-2023 03:08 AM
Action was built separate, so trying to test the action itself then facing the error.
Please refer the attached
when tested by using test rest step then its working fine

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-28-2023 03:10 AM
Hi @nikhitha24,
It works fine for me when trying to test it that way.
I'd suggest creating a case with Now Support for further assistance.
Help others to find a correct solution by marking the appropriate response as accepted solution and helpful.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-28-2023 03:13 AM
@Peter Bodelier , thank you for your assistance, will check and raise a case with Now support

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-28-2023 03:15 AM
You're welcome. Please let us know what the issue and solution is once its resolved.
Help others to find a correct solution by marking the appropriate response as accepted solution and helpful.