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?
Solved! Go to Solution.
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.
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.
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!