Error: undefined is not a function.,Detail: undefined is not a function.

nikhitha24
Tera Guru

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

 

 

 

14 REPLIES 14

Peter Bodelier
Giga Sage

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.

@Peter Bodelier ,

Action was built separate, so trying to test the action itself then facing the error.

Please refer the attached

test1.png

 

when tested by using test rest step then its working fine

 

test2.png

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.

@Peter Bodelier , thank you for your assistance, will check and raise a case with Now support

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.