Is there any way to populate fields using url?

Alon Grod
Tera Expert

Hi,

Is there any way to open a new incident window and populating fields using the url (passing parms and values for parms using the url) and not using client script?

1 ACCEPTED SOLUTION

Robbie
Kilo Patron
Kilo Patron

Hi @Alon Grod,

 

Did you see my earlier response?

It is possible to do this via the workspace as requested. The syntax is very similar. Here's an example using the Service Ops Workspace:

 

https://yourinstance.service-now.com/now/sow/record/interaction/-1_uid_1/params/query/active%3Dtrue%...

 

To add to this, simply add the URL encoding value of '%5E' (which is the ^ symbol also known as &) followed by the field name (eg short_description) followed by the URL encoding value of %3D (which is the = symbol) followed by the value to wish to pass.

 

Eg: e%5Eshort_description%3DTesting

 

As before, if you're trying to populate a field type of reference for example, you'll need to pass the sys_id as shown with the 'assigned_to' field.

 

@Alon Grod To help others (or for me to help you more directly), please mark this response correct by clicking on Accept as Solution and/or Helpful.

 

Thanks, Robbie

View solution in original post

9 REPLIES 9

Hi @Alon Grod,

 

Sure, it's a very similar syntax. Here's an example using the Service Ops Workspace:

 

https://yourinstance.service-now.com/now/sow/record/interaction/-1_uid_1/params/query/active%3Dtrue%...

 

To add to this, simply add the URL encoding value of '%5E' (which is the ^ symbol also known as &) followed by the field name (eg short_description) followed by the URL encoding value of %3D (which is the = symbol) followed by the value to wish to pass.

 

Eg: e%5Eshort_description%3DTesting

 

As before, if you're trying to populate a field type of reference for example, you'll need to pass the sys_id as shown with the 'assigned_to' field.

 

To help others (or for me to help you more directly), please mark this response correct by clicking on Accept as Solution and/or Helpful.

 

Thanks, Robbie

Hi @Alon Grod,

 

Did you see my earlier response providing a working example using the Service Ops Workspace:

 

https://yourinstance.service-now.com/now/sow/record/interaction/-1_uid_1/params/query/active%3Dtrue%...

 

To help others (or for me to help you more directly), please mark this response correct by clicking on Accept as Solution and/or Helpful.

 

Thanks, Robbie

Hi @Alon Grod,

 

How did you go with the predefined Service Service Ops Workspace window? Did you see my response where I provided the syntax and example to achieve this? Is there anything else I can help with to close your question out?

 

To help others in the community and make sure we have solutions marked correctly, please can you mark this response correct by clicking on Accept as Solution and/or Helpful.

 

Thanks, Robbie

Robbie
Kilo Patron
Kilo Patron

Hi @Alon Grod,

 

How did you go with the predefined Service Service Ops Workspace window? Did you see my response where I provided the syntax and example to achieve this? Is there anything else I can help with to close your question out?

 

To help others in the community and make sure we have solutions marked correctly, please can you mark this response correct by clicking on Accept as Solution and/or Helpful.

Robbie
Kilo Patron
Kilo Patron

Hi @Alon Grod,

 

Did you see my earlier response?

It is possible to do this via the workspace as requested. The syntax is very similar. Here's an example using the Service Ops Workspace:

 

https://yourinstance.service-now.com/now/sow/record/interaction/-1_uid_1/params/query/active%3Dtrue%...

 

To add to this, simply add the URL encoding value of '%5E' (which is the ^ symbol also known as &) followed by the field name (eg short_description) followed by the URL encoding value of %3D (which is the = symbol) followed by the value to wish to pass.

 

Eg: e%5Eshort_description%3DTesting

 

As before, if you're trying to populate a field type of reference for example, you'll need to pass the sys_id as shown with the 'assigned_to' field.

 

@Alon Grod To help others (or for me to help you more directly), please mark this response correct by clicking on Accept as Solution and/or Helpful.

 

Thanks, Robbie