You need to sign in to do that
Don't have an account?
Nandhini 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?
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?
Arlene
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.