while testing the flow we got Root cause of JavaScriptException: org.mozilla.javascript.NativeError

lakshmikumari
Tera Contributor

Hi,

 

I have integrated a ServiceNow with Microsoft Azure, and I have created flow, and I used 2 spokes i.e, Is user in Group and Add user to Group, everytime while testing the flow Is user in group stage is completed and Add user to Group state is skipped error

lakshmikumari_3-1752238810778.png

 

Below is the flow I have build:

lakshmikumari_0-1752238646952.png

The error that I got was:

lakshmikumari_1-1752238699548.pnglakshmikumari_2-1752238731663.png

Could anyone help me to resolve this?

3 REPLIES 3

SumanthDosapati
Mega Sage
Mega Sage

@lakshmikumari 

One of the screenshots says, oAuth token and scope permission issue. Did you check that at azure end?

 

Regards,
Sumanth

Yes Sumanth, API permissions we set are as below:

lakshmikumari_0-1752242682921.png

 

lakshmikumari
Tera Contributor

Hi Everyone, 

 

Anyone help me out to resolve this issue?