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

Community Tip - Have a PTC product question you need answered fast? Chances are someone has asked it before. Learn about the community search. X

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

Deepak_kankhare
10-Marble

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)

 

Announcements



Top Tags