cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Anlai
Regular Visitor

Custom Entity List for Articles default hyperlink uses id instead of articlepublicnumber

Hi there, 

 

We have a scenario where we want a list of particular articles for a product (controlled by a view in Dynamics) to show in the portal, and also be able to click on the hyperlink and view the article details.


I've created an Entity List with a view of what we want, but the auto hyperlink to that article uses the record ID in Dynamics, and not the public article number on the portal. For example:

knowledgebase/article/?id=0b13a12d

This is the path I'm wanting, using the Public Article Number:
knowledgebase/article/KA-01254/

I found the "ID Query String Parameter Name' that has 'id' by default, that only controls the prefix before the article ID, not what should be used.  

For example:

knowledgebase/article/?articlepublicnumber=0b13a12d-8ccf-e911-a812-000d3a99e2 instead of

knowledgebase/article/?id=0b13a12d-8ccf-e911-a812-000d3a99e2

 

Is there a way to configure that to use the public number instead or if there is another way to accomplish this?

 

 

1 ACCEPTED SOLUTION

Accepted Solutions

Hi @Anlai ,

 

Default entitylist uses id property by default and unfortunately we cannot change that behavior (at least to my knowledge). What you can do is to create a web template to render your own entitylist (see official example) and there you can define link with whatever parameter you like.

----------------------------------------------------
If you find this post helpful consider marking it as a solution to help others find it.

View solution in original post

2 REPLIES 2

Hi @Anlai ,

 

Default entitylist uses id property by default and unfortunately we cannot change that behavior (at least to my knowledge). What you can do is to create a web template to render your own entitylist (see official example) and there you can define link with whatever parameter you like.

----------------------------------------------------
If you find this post helpful consider marking it as a solution to help others find it.
Anlai
Regular Visitor

Thank you @OOlashyn that was very helpful, I was able to change the URL of a custom Web Template as follows: 

I just replaced: href="{{ entitylist.detail_url}}?{{ entitylist.detail_id_parameter }}={{ e.id }}"

With:  href="{{ entitylist.detail_url}}{{ e.articlepublicnumber }}"

 

Works a charm.  Now for getting the page formatting sorted as it's very wide, but your link also had more information on Liquid and how to configure the page further.  Thanks, you were a great help! 

Helpful resources

Announcements
Microsoft 365 Conference – December 6-8, 2022

Microsoft 365 Conference – December 6-8, 2022

Join us in Las Vegas to experience community, incredible learning opportunities, and connections that will help grow skills, know-how, and more.

Top Solution Authors
Users online (1,213)