LoginSignup
0
0

テキストテンプレートのまとめ

Last updated at Posted at 2023-07-02

リッチテキストのような中にリンクを埋め込場合には同ブラウザ内に遷移しない

テキストテンプレートのプレーンテキストだとHTMLのタグが使えるみたいです。

新しいテキスト テンプレート リソースを作成し、この HTML コードをプレーン テキスト モードで追加します。

<a href="{!RecordLink_Formula}" target="_self">Click here</a>

URLを動的につくる

LEFT({!$Api.Enterprise_Server_URL_570} , FIND('/services', {!$Api.Enterprise_Server_URL_570})) & "/lightning/r/Account/"& {!$Record.Id} &"/view"

解答例

When using an email template, you need to obtain the ID ( Onboarding__c.Account__c ) of the related object that specifies the link destination as a formula field .

I want to make a URL from record in a custom object in lightning email template
https://salesforce.stackexchange.com/questions/400831/i-want-to-make-a-url-from-record-in-a-custom-object-in-lightning-email-template

The base URL can be referenced using the following formula.

LEFT({!$Api.Enterprise_Server_URL_600} , FIND('/services', {!$Api.Enterprise_Server_URL_600})) & "/lightning/r/Account/"& {!$Record.Id} &"/view"
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0