Forum Discussion
SP List View formatting using JSON - Query String parameter
bhanu chintha Unfortunately, JSON formatting does not support reading URL query string parameters.
If your query string parameters are fixed then you can create a new link by using string concatenation (+ operator) in JSON formatting. Considering internal name of your column is "PageLink", you can build new URL like:
"href": "=[$PageLink] + '?QueryStringKey=QueryStringValue'"
Documentation: JSON Formatting syntax reference
Reference: How to find the Internal name of columns in SharePoint Online?
Please click Mark as Best Response & Like if my post helped you to solve your issue. This will help others to find the correct solution easily. It also closes the item. If the post was useful in other ways, please consider giving it Like.
For SharePoint/Power Platform blogs, visit: Ganesh Sanap Blogs
Yeah, I was not able to find the option of reading query string parameters. 😞
- ganeshsanapDec 02, 2021MVP
bhanu chintha If query string parameters are not constant then it is not possible to achieve using JSON formatting.
Please click Mark as Best Response & Like if my post helped you to solve your issue. This will help others to find the correct solution easily. It also closes the item. If the post was useful in other ways, please consider giving it Like.