Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

How get the sysid from url when creating a widget

Rizvi1
Kilo Contributor

How get the sysid from url when creating a widget

1 ACCEPTED SOLUTION

Pranav Bhagat
Kilo Sage

You can simply use this in your widget server side script

 

$sp.getParameter("sys_id")

 

Regards

Pranav

View solution in original post

2 REPLIES 2

Pranav Bhagat
Kilo Sage

You can simply use this in your widget server side script

 

$sp.getParameter("sys_id")

 

Regards

Pranav

Is there a way to pass that sys id to the backend and call it in a script include?