I’d like to send out an email via workflow upon certain conditions in the invoice module.
How can I add a link to the current invoice record into the email template?
I can’t see a way to add the invoice-ID (which could be added to the static part of the URL), nor do I know of a variable that fills exactly the link of the current invoice…
There’s no documented list but pretty much all field variables can be added using the ‘Insert Variables’ option. The variable is automatically populated for each field.
If you come across something you need to add but don’t see an option let us know.
Yes, $sugarurl works if it’s the domain of your crm, and sadly I have to use it almost every time I create or edit URLs in the email templates (most of the time you cannot use the full URL because it removes your domain for you, perhaps as user above mentioned it does not like https?).
A related tip: to get the record ID, even if it is not in the drop down list of variables, use this: modulename_id (I think it needs to be lower case for some reason).