Error: undefined is not a function.,Detail: undefined is not a function.
This content was last updated in 2023. It may still be useful, but could contain outdated information. Please confirm its accuracy before relying on it.
- 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-25-2023 07:17 AM
Hi Nikitha,
Please check are there any parameters present in the input of the function and add those parameters while calling the function, this can be the only reason . If the issue still persists please share the SI code
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-25-2023 07:24 AM
are you sure script include is getting called?
Are you sure there is no error coming in script include?
try adding try catch block to handle exception and check
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-25-2023 07:24 AM
Hi @nikhitha24,
Can you share you script include and action?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-26-2023 03:25 AM
Hello,
the script include is getting called , when i test the input step then i'm getting the status code 200 the error is only getting when i'm trying to test the whole Action
here is the Action and the script include i have written
Action:
Script Include: