How to Pass Additional Query Parameters in URL for Configurable Workspaces

RC22
Tera Expert

We've been using configurable workspaces in ServiceNow, and as part of this, we have a related list with an action button. For configuring this action button, we're currently using declarative actions, and specify client action as Create New Record.

 

The reason we need to pass additional query parameters into the URL is that the record we are creating does not have a direct relationship with the table where the action button is placed. When a new record is saved, we want to link it to another table that is different from the current one. To achieve this, we need to pass extra query parameters.

 

Additionally, when passing certain values into table-related fields that contain comma-separated values or special characters, we notice it doesn't work as expected. Should the query parameters in the payload map be URL-encoded, or is there another way to handle these cases?

 

Any guidance or suggestions would be greatly appreciated!

2 REPLIES 2

Gpope
Tera Contributor

Hi @RC22 , have you ever solved this? Im facing the same issue. 

 

Thanks

IronPotato
Mega Sage

Hi @RC22 ,

 

when I'm reading LINK, my notion from this is to link the user to another page. Is that what you need? 

 

There are 2 OOB events that either redirect user to page you want or add page parameters to you URL.

 

You just need to make sure that your DR which is creating this record is successful and you are invoking redirection after that in some client script so that you have sys_id available.

 

can you please be more specific what needs to happen after record creation?