LoginSignup
0
0

マクロでメールテンプレートを使うとエラーになる

Last updated at Posted at 2022-10-04

元の質問 : Macro in Service Cloud- can't edit Email template

image.png

システム管理者でもアクセスできないみたい。何か変な感じです。

見つけましたね。
System Administrator can't access Email Templates

「従来のメール テンプレートと関連機能を有効にする」が組織で有効になっていないようです。「 Match Production Licenses 」を使用して解決することができます。

Setup--> Quick find--> Company information--> Match production license

これは、最近の Summer '22 パッチ リリースのバグとして特定されています。KI の詳細はこちらでご確認ください。

修正なしだって...
Enhanced Letterhead Disabled In Org

Workaround
Log a case with Support requesting to have Enhanced Letterhead enabled for their Org.
If this is happening in a sandbox, using the Match Production Licenses Tool will resolve the issue.

サポートにケースを登録し、組織で拡張レ​​ターヘッドを有効にするようリクエストします。
これがサンドボックスで発生している場合は、Match Production Licenses Tool を使用すると問題が解決します。

You can't perfom this action on this page

image.png

  1. From Service Setup, click the Object Manager tab. Select Case, and open the Buttons, Links, and Actions page.
  2. Edit the Email action.
  3. In Default Email Template field, leave the email template blank

https://trailhead.salesforce.com/trailblazer-community/feed/0D54S00000A8W9tSAF

The Macro Instruction can't be used in this view. Update the Macro.

Please check this article.

Error 'The instruction is not available' when you use a Macro
https://help.salesforce.com/s/articleView?id=000387893&type=1

マクロの制限

メール送信アクションが利用できません

By default the org comes with Email option. But in your playground, I can see many Email actions. I have added the correct Email action under "Salesforce Mobile and Lightning Experience Actions" section in Case Page Layout and now you can see the Email quick action on the record page.

image.png

Salesforce マクロ作成ではメール選択アクションは使用できません

image.png

  1. From Service Setup, click the Object Manager tab. Select Case, and open the Buttons, Links, and Actions page.
  2. Edit the Email action.
  3. In Default Email Template field, leave the email template blank

https://trailhead.salesforce.com/trailblazer-community/feed/0D54S00000A8W9tSAF

The macros and quick text items aren’t in your Service Console app. Use the App Manager in Setup to verify that these items are available in the Service Console app.

Make sure adding the Macros in utility and Macro,Quick text in Navigation of Service Console app.

I was stuck with this more then hour : "The macros and quick text items aren’t in your Service Console app. Use the App Manager in Setup to verify that these items are available in the Service Console app"

image.png

you should normally find macro in the following parts :

  • in the Service Console application (last capture is in Service [not Service Console] app)

  • in the Utility bar (in the bottom bar of the screen)

Oops, the page you’re trying to view isn’t here

よくわからん

Bulk Macro

マクロ ユーティリティがサービス コンソール アプリにありません。セットアップのアプリ マネージャーを使用して、このユーティリティがサービス コンソール アプリにあることを確認します。

image.png

I figured it out this morning with a new set of eyes... I had added macros and quick text with a different path when I went to add again it was already there, I had missed this step in Utility..

今朝、新たな目でそれを理解しました...別のパスでマクロとクイックテキストを追加していましたが、再度追加しようとしたとき、すでにそこにありました。ユーティリティでこの手順を見逃していました。

image.png

電子メールを送信しないマクロによる電子メール テンプレートのスロー エラー

Error We couldn’t run the Macro. Try again. We were unable to process the email template.

Error Message: core.email.template.TemplateRenderingException:

We don't recognize the field prefix Recipient. Associate a record that matches the prefix or update the template to remove the merge field from the body, subject, or letterhead.

image.png

or anyone else having this issue, I finally figured it out. (And, by the way, there was no flow involved to disable.)

In my screenshot above, you will see that the "Submit Action" step is in the same "Select Update Case Action" as all the other steps. I removed "Submit Action" from the Update Action, created a second Update Action, and added "Submit Action" as the only step in the second Update Action.

What this has to do with an email template or merge fields, I cannot say.

この問題を抱えている他の人のために、私はついにそれを理解しました。 (ちなみに、無効にするためのフローはありませんでした。)

上のスクリーンショットでは、「アクションの送信」ステップが他のすべてのステップと同じ「ケース更新アクションの選択」内にあることがわかります。更新アクションから「送信アクション」を削除し、 2 番目の更新アクションを作成し、2 番目の更新アクションの唯一のステップとして「送信アクション」を追加しました。

これが電子メール テンプレートや差し込みフィールドとどのような関係があるのか​​はわかりません。

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