Ui Builder : How to pass parameters to REST api

hreddy
Tera Expert

I tried to display weather report using Ui Builder. It works for Hardcoded location.

Is it possible to Pass the location to end point , i dont find any way to pass parameter "City" to Data Broker Server script.

Much appreciate if anyone can help me on this 😀

 

hreddy_0-1696337071138.png 

hreddy_1-1696337143585.png

@Brad Tilton 

 

1 ACCEPTED SOLUTION

Brad Tilton
ServiceNow Employee
ServiceNow Employee

You'd have to define a property for the city on your data resource and then reference it in the script. This may help: https://www.servicenow.com/community/next-experience-articles/all-about-data-resources-in-ui-builder...

View solution in original post

2 REPLIES 2

Brad Tilton
ServiceNow Employee
ServiceNow Employee

You'd have to define a property for the city on your data resource and then reference it in the script. This may help: https://www.servicenow.com/community/next-experience-articles/all-about-data-resources-in-ui-builder...

Thanks @Brad Tilton  for the super fast prompt response , it worked well.

One question, do you know how to make kind of reference field in UI builder, is there any way we can achieve in UI builder

hreddy_0-1696340187751.png