How to add a view to the link in Portal Data List

vidhya_mouli
Giga Sage

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?

1 ACCEPTED SOLUTION

vidhya_mouli
Giga Sage

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"
},

View solution in original post

3 REPLIES 3

Ankur Bawiskar
Tera Patron
Tera Patron

@vidhya_mouli 

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.

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

KrishnaMohan
Giga Sage

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.

KrishnaMohan_0-1756710983337.png


If this helped to answer your query, please mark it helpful & accept the solution.
Regards,
Krishnamohan

 

vidhya_mouli
Giga Sage

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"
},