How to Pass Additional Query Parameters in URL for Configurable Workspaces
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-22-2024 08:18 PM - edited 06-22-2024 08:19 PM
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!