- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Monday
How to add a view to the link in Portal Data List
We are using Portal Data List widget to display different cases in the portal.
Current Behavior: When we click on a case, the form opens in and the following URL is added
business_portal?id=form&table=sn_customerservice_case&sys_id=26597aa8fb5e6a50706ff9464eefdc40&view=csp
Expected Behavior: When we click on a case, the form should open. Depending on the case type, the view should change.
Any suggestions on how this can be achieved?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Monday
Managed to to do by by doing the following:
In the widget's instance options, unclicked "Dynamic data list' in the widget's portal configuration. Instead of using a URL, now I can configure the for my case type.
Example:
{
"category": "Deliveries",
"table": "sn_customerservice_deliveries",
"view": "deliver_cases",
"card_view_primary_column": "number",
"card_view_secondary_column": "short_description",
"card_view_additional_columns": "product|priority|state|contact",
"glyph": "truck",
"target_page_id": "form"
},
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Monday
the view=csp must be hard-coded or might be passed as config.
depending on case type (table) which view should open
share some screenshots and example
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Monday
Hi @vidhya_mouli ,
Have you tried view rules, View rules can control/override based on conditions using view rules
For ex: partner, customers have one view like that based your condition override the view.
If this helped to answer your query, please mark it helpful & accept the solution.
Regards,
Krishnamohan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Monday
Managed to to do by by doing the following:
In the widget's instance options, unclicked "Dynamic data list' in the widget's portal configuration. Instead of using a URL, now I can configure the for my case type.
Example:
{
"category": "Deliveries",
"table": "sn_customerservice_deliveries",
"view": "deliver_cases",
"card_view_primary_column": "number",
"card_view_secondary_column": "short_description",
"card_view_additional_columns": "product|priority|state|contact",
"glyph": "truck",
"target_page_id": "form"
},