Hello. In custom record type I have added a new Hy...
# general
b
Hello. In custom record type I have added a new Hyperlink type field. But I want to show SL screen when I click that link field with passing current record id. I'd like to know if it's possible and how to do that if possible? I tried this but it says formula is wrong. /app/site/hosting/scriptlet.nl?script=1&deploy=1¶mId={recordid}
a
Most record types use {internalid} or {id}. I'm not sure whether {recordid} is a valid field ID (maybe?). Depending on your Suitelet, if you're trying to pass it a transaction, then maybe you're after the {tranid} which is the number in the transaction's name, like Purchase Order #54321, the tranid is the 54321, but this is different from the transaction record's internal ID. the Internal ID is what you want if your suitelet is using the paramId value to load, edit, or search for, a specific record. Search can also use tranid as a filter just as easily as it can use internalid; it depends on your suitescript code.
b
Sorry but even I can't save that formula field with {recordid} {id}, etc
@Aaron McCausland you want me to set default value, right? It shows me this error. Your formula has an error in it. It could resolve to the wrong datatype, use an unknown function, or have a syntax error. Please go back, correct the formula, and re-submit.
a
Ah I think I know the problem. If I remember right, URL fields have to start with http:// or https:// if I remember correctly. so you might have to put in the whole URL instead of just the relative path. If you want to use this as a hyperlink, you might try setting it as an Inline HTML field instead, where the formula is something like this(include the single quotes and concatenation marks || ): '|{internalid}||'"Go to suitelet/a' That's a guess. Hope it works. Or maybe you can do that in the URL field and it just needs the single quotes to encapsulate the literal static parts and the concatenators || to separate them from the {fieldreferences} like this in the (unstored) field's default value formula: '/app/site/hosting/scriptlet.nl?script=1&deploy=1¶mId='||{recordid}