Skip to main content
Nintex Community Menu Bar
Solved

Creating a Link to a SF record in a table

  • July 12, 2024
  • 4 replies
  • 43 views

Forum|alt.badge.img+1

I’m trying to combine two fields in a table to save screen space. Currently I have 2 fields - Product and Billed Product.

Product is just a text field with the product name - which is useful/needed on this screen.
Billed Product is just the auto-incrementing Name field that contains the link to the record. The LINK is needed, but not the “B-{00001}” value that is displayed.

So what I want is a template field that displays the Product Name, but is a hyperlink to the Billed Product record.
Here is what I have in the Template field:

<a href={{Billed_Products_Mo__r.Id}}>{{Monthly_Bill_Product__c}}</a>

This is close to working, except the linked URL is including “/apex” in the url and when I click the link, it takes me to SF Classic and a page that says the “URL No Longer Exists”

https://mycompany–skuid.vf.force.com/apex/a0K1400000AAAAAAAA - URL that breaks
https://mycompany–skuid.vf.force.com/a0K1400000AAAAAAAA - correct URL that I’m trying to create

Best answer by Skuidward_Tentacles

Try

<a href= “https://mycompany –skuid.vf.force.com/{{{Billed_Products_Mo__r.Id}}}”>{{Monthly_Bill_Product__c}}

4 replies

Forum|alt.badge.img+17

Try

<a href= “https://mycompany –skuid.vf.force.com/{{{Billed_Products_Mo__r.Id}}}”>{{Monthly_Bill_Product__c}}


Forum|alt.badge.img+1
  • Author
  • Novice
  • July 12, 2024
Skuidward_Tentacles:

<a href= “https://mycompanyskuid.vf.force.com/{{{Billed_Products_Mo__r.Id}}}”>

Thank you. I had tried something similar to this before, but it wasn’t working.


Forum|alt.badge.img+17

Triple curly brackets strip the meta formatting and gives you just the raw data. That is useful for cases like this.


Forum|alt.badge.img+10
  • Scholar
  • July 12, 2024

It’s better to use relative links here:

<a href="/{{{OurLookupField__c}}}">{{{OurLookupField__r.Name}}}</a>

Just in case your org’s domain changes somehow.