cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Help us improve the PTC Community by taking this short Community Survey! X

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

Deepak_kankhare
7-Bedrock

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 2

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.

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)

 

Top Tags