Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Service | Customer Service, Contact Center, Fie...
Answered

Portal - How to set hyperlink on primary field in Entity List if not set up as first column

(0) ShareShare
ReportReport
Posted on by 44

Hi,

I would like to put an hyperlink on the primary field on Entity list.

By default, it is possible to set it up with the first column of the entity list but how to move this behavior if I want my primary field is set after the first column ?

I read others topics that works with custom attribute but unfortunately it can't be applied because "data value" doesn't store the guid of the record.

  • Alex519 Profile Picture
    44 on at
    RE: Portal - How to set hyperlink on primary field in Entity List if not set up as first column

    Hi Leah,

    Thank you for the detailed steps you provided. It works well.

    Regards,

  • Suggested answer
    Community Member Profile Picture
    on at
    RE: Portal - How to set hyperlink on primary field in Entity List if not set up as first column

    Hi Partner,

    Has the problem been solved? Any updates?

    Please click Yes under "Did this answer your question?" to close this thread.

    pastedimage1605866399235v1.png

    Thanks. 

    Regards,

    Leah Ju

    Please mark as verified if the answer is helpful. Welcome to join hot discussions in Dynamics 365 Forums.

  • Verified answer
    Community Member Profile Picture
    on at
    RE: Portal - How to set hyperlink on primary field in Entity List if not set up as first column

    HI Alex519,

    By default, In Entity List If you enable settings to view Entity List records, It shows hyperlink only on very First Column of Entity List.

    You can refer following steps to make the other Column Value Hyperlink of any Entity List in Portal.

    1.example javascript code:

    $('.entitylist').on("loaded", function () {

        //To make the field/column's value hyperlink

        $("td[data-attribute*='Field's BackEnd Name']").each(function() { 

       // Get guid of record - This will give you the GUID of Current Record (Current Row).

        var GUID = $(this).closest('tr').attr("data-id");

        // Partial URL of webpage where you want to redirect the user.

        var pagewhereToRedirect = "Partial URL of Web Page";

        // Construct the URL

        var redirect = window.location.href + pagewhereToRedirect + "/?id="+ GUID;

        // Make the field value Hyperlink

        var text=$(this).text();

        $(this).html("<a href="+redirect+">"+text+"</a>");

        });

        });

    2.In above code, you just need to change the highlighted value only.

    (1) get ‘Field's SCHEMA NAME or Field's HTML Control Id’.

    Go Settings > Customizations > Customize the system > Entities > Case > Fields.

     pastedimage1605852351857v4.png

    (2) get ‘Web page Partial URL’

    Right Click on Hyperlink and Copy Link Address. The highlighted part is the partial URL of the webpage.

     pastedimage1605852649295v1.png

    3.Add the modifid js code to entity list.

     pastedimage1605851979384v2.png

    4.Test.

    pastedimage1605851948309v1.png

    Regards,

    Leah Ju

    Please mark as verified if the answer is helpful. Welcome to join hot discussions in Dynamics 365 Forums.

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

Ramesh Kumar – Community Spotlight

We are honored to recognize Ramesh Kumar as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Service | Customer Service, Contact Center, Field Service, Guides

#1
Muhammad Shahzad Shafique Profile Picture

Muhammad Shahzad Sh... 51 Most Valuable Professional

#2
Ramesh Kumar Profile Picture

Ramesh Kumar 42

#3
David Shaw_UK Profile Picture

David Shaw_UK 27

Featured topics

Product updates

Dynamics 365 release plans