Announcement

Collapse
No announcement yet.

siteUrl in functions/email templates?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • siteUrl in functions/email templates?

    I try to create links in email templates used by bpmn workflow tasks.
    Since I don't find a way to directly access siteUrl from a template, is there a to get siteUrl by a function?

  • #2
    Hi hi-ko,

    I think that at the moment it is best to insert the Site URL through the definition of a variable at the beginning of the formula script (in the case of BPM).
    But you can also read the following topic on the forum, maybe it will be useful for you: https://forum.espocrm.com/forum/gene...url-in-formula.

    Comment


    • hi-ko
      hi-ko commented
      Editing a comment
      thanks for the tip @lazovic!
      The custom function would be the way to go then to get the siteUrl from the server config not to hard code the url in any workflow / formular script
      It's a kind of a life safer for now but this function should find it's way into the core. I'll check, if someone already created a ticket/pull request in github ...
Working...
X