How to populate fields using url

Alon Grod
Tera Expert

Hi,

This is my instance url for the 'Create Incident' record producer in the portal. How can I populate the fields service_offering and business_service using the url?

http://my_instance_url/esc?id=sc_cat_item&sys_id=3f1dd0320a0a0b99000a53f7604a2ef9

6 REPLIES 6

Anurag Tripathi
Mega Patron
Mega Patron

Hi,

Check this blog by Brad that shows ,with eg, how can you pass values via url to populate the field

https://www.servicenow.com/community/developer-blog/3-ways-to-populate-values-in-servicenow-via-the-...

-Anurag

@Alon Grod  Did you check the link?

-Anurag

Sohail Khilji
Kilo Patron
Kilo Patron

Hi @Alon Grod ,

 

You can get this from REST API explorer as below. the reasponse will give you the url with all fields value that you have passed.

 

Eg: to pass service offering value as database

 

 http://my_instance_url/esc?id=sc_cat_item&sys_id=3f1dd0320a0a0b99000a53f7604a2ef9&sysparm_fields=ser...

 

i hope this helps..

 

 

 


☑️ Please mark responses as HELPFUL or ACCEPT SOLUTION to assist future users in finding the right solution....

LinkedIn - Lets Connect

@Sohail Khilji its not working