Skip to main content
12-Amethyst
Jul 3, 2024 10:35 AM UTC
Question

Codebeamer Workflow Custom Action : Execute JS for sample REST API Call

Hello All, 

 

I am trying to execute my JS on codbeamer workflow custom actions. My JavaScript contains sample REST API Call operation and I am getting this error. 

Deepak_kankhare_0-1720002693795.png

How to resolve this? or add require packages on codebeamer ? 

 

 

2 replies

13-Aquamarine
Jul 5, 2024 11:02 AM UTC

HI @Deepak_kankhare ,

 

There is a syntax error in your custom script, specifically a duplicate "const".

 

Could you please open your script and check for syntax errors or duplicate keywords?

 

Thank you.

Translate
12-Amethyst
Jul 16, 2024 4:44 AM UTC

Thank you for your reply @gkosa , my script is working locally without an error.

For REST calls need a special library that needs to be included in the script and Codebeamer is not recognizing it. (i.e Node-fetch)

 

Translate