Hi All, I need to add a "view" hyperlink to specif...
# general
d
Hi All, I need to add a "view" hyperlink to specific transactions on a summary saved search. If I use Formula (Text) then I only can have a link on a specific type (e.g. vendor bill) but my saved search contains different transaction types and I need a link to work for all of them (Vendor bill, sales invoice and journal). Does anyone know how to do it? Thank you
n
What does your current formula text look like?
d
Hi, here you go: '<a name="View"id="View" href="'||'https://xxxxxx.app.netsuite.com/app/accounting/transactions/vendbill.nl?id='||{internalid}||' "target="_self">View</a>'
m
You’ll have to insert a formula into the URL to dynamically source the transaction type CASE WHEN {type} = ‘Vendor Bill’ THEN ‘vendbill’ WHEN {type} = ‘Journal’ THEN ‘journal’ END Something like that
Or try to use {type.id} see if that gives the correct value
Also should use formula HTML. Formula text no longer supports html
n
you might be able to use "recordtype" or "recordType" I'd try outputting them in their own column to see what they output.
Also you might not need a case statement but string together the href using {recordtype}.nl or whatever is appropriate at the point you add the transaction type parameter
d
Ok, thank you all, trying...
b
use
/app/accounting/transactions/transaction.nl?id={{the id}}
as the url
😯 1
the relative url is more likely to survive different environments
n
^^ avoiding the record type entirely, simplest approach 👍
b
and using transacftion.nl allows you to avoid worrying about the transaction type
m
Just to add, I learned this trick recently. You can leave out “https://xxxxxx.app.netsuite.com” and just start it as “/app”. This way when it gets pushed to sandbox or another account, it will know automatically which account to use. It saves a lot of time trying to edit saved searches.
👍 2
m
Also make sure to use a Formula (HTML) so it doesn't break with next upgrade
👍 1
d
Thanks all! Also for the tips. I managed and it's working now :)