function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Nandhini S 3Nandhini S 3 

How to display lookup fields as url in lwc component

Hi all,
I have an apex class which returns a map<string,string>. It stores two lookup fields from parent and child object. When I display the map values in lwc component, it displays ID instead of the value as URL. How can I display the values?
ArleneArlene
Hi Nandhini.  We need a little bit more information to answer you.  I assume you want to use the URL to go to the record page for id?  Are you in Lightning Experience, Salesforce Classic, or an Experience Site?  In a console app or not?  Do you want to replace the current page, or open a new tab?  There are several ways of creating URLs, depending on the answers to these questions.