web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Pages / Custom Entity List for...
Power Pages
Answered

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

(0) ShareShare
ReportReport
Posted on by 7

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?

 

 

Categories:
I have the same question (0)
  • Verified answer
    OOlashyn Profile Picture
    3,498 Most Valuable Professional on at

    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.

  • Anlai888 Profile Picture
    7 on at

    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! 

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Pages

#1
11manish Profile Picture

11manish 46

#2
Valantis Profile Picture

Valantis 24

#2
omkarsupreme Profile Picture

omkarsupreme 24

Last 30 days Overall leaderboard