Unable to understand workflow "run script" activity.

VIKAS MISHRA
Tera Contributor

As per the requirement when somebody raise one request on the bases of that one record gets created in another table "Assignment data lookup"

I have found this activity in the workflow of request , but unable to understand the code as i am required to make some changes. 

If you see below mentioned workflow and its code , i am unable to see any glide record there and if no glide record then how this code is actually creating any data in assignment lookup data table., please suggest.

 

VIKASMISHRA_0-1741268388076.png

 

Below is the code that is written in this activity 

 

var dataArray = JSON.parse(current.variables.create_access_rights);
gs.eventQueue('x_omsag_gif_car_oe.create_access_records', current, current.variables.create_access_rights, current.variables.new_finance_user_role);

 

 

1 ACCEPTED SOLUTION

Ahmmed Ali
Mega Sage

Hello @VIKAS MISHRA 

 

The above code triggers the event x_omsag_gif_car_oe.create_access_records. Here no code to create anything, but there might be a script action which is configured to run when this event triggers. You can check the same by searching script action in application navigator > open the table. In table search with event name.

 

refer https://www.servicenow.com/docs/bundle/yokohama-build-workflows/page/administer/platform-events/refe... 

 

Thank you,

Ali

 

If I could help you with your Query then, please hit the Thumb Icon and mark my answer as Correct!!

Thank you,
Ali

View solution in original post

2 REPLIES 2

Ahmmed Ali
Mega Sage

Hello @VIKAS MISHRA 

 

The above code triggers the event x_omsag_gif_car_oe.create_access_records. Here no code to create anything, but there might be a script action which is configured to run when this event triggers. You can check the same by searching script action in application navigator > open the table. In table search with event name.

 

refer https://www.servicenow.com/docs/bundle/yokohama-build-workflows/page/administer/platform-events/refe... 

 

Thank you,

Ali

 

If I could help you with your Query then, please hit the Thumb Icon and mark my answer as Correct!!

Thank you,
Ali

Siddhesh Gawade
Mega Sage
Mega Sage

Hello @VIKAS MISHRA ,

 

Navigate to System Policy > Events > Script Action table. In the Event Name field search for "x_omsag_gif_car_oe.create_access_records". You should be able see action record. If you find that you should be able to see the code that you are looking for.

 

Kindly mark the answer ✔️ Correct or Helpful ✔️ If it addresses your concern.


Regards,

Siddhesh