LoginSignup
0
0

クイックアクションのまとめ

Last updated at Posted at 2022-07-11

まとめページに戻る
まとめN~Z

TO solve this problem first you need to close the quick action and refresh the current page
so first close the quick action component

import { CloseActionScreenEvent } from 'lightning/actions';

closeQuickAction() {

    this.dispatchEvent(new CloseActionScreenEvent());

}

https://salesforce.stackexchange.com/questions/356845/force-refresh-f5-of-a-page-after-lwc-quick-action

以下を読むと、まだアイデアのようです。

また、顧客向けのケース送信フォームでは、内部フォームのヘルプ テキストとは異なるヘルプ テキストを指定できると便利です。たとえば、ケース送信フォームに「シリアル番号」というフィールドがある場合、ヘルプ テキストを使用して顧客に「製品の底部のバーコードの下にあるシリアル番号」を知らせることができます。しかし、内部的には、「製品のアセット ID」のようなヘルプ テキストが必要になる場合があります。

It would also be nice to be able to specify Help Text that's different on the customer facing Case Submission form, vs the Help Text on the internal form. For example, if I have a field on the Case Submission Form called "Serial Number", I could use Help Text to let customers know "The serial number located underneath the barcode on the bottom of your product". But internally, I might want Help Text like: "The asset Id of the product".

https://ideas.salesforce.com/s/idea/a0B8W00000GdYG1UAN/customizable-field-labels-and-help-text-on-layouts-in-global-actions

That is actually possible now. You can read about it here:

https://help.salesforce.com/s/articleView?id=sf.mass_quick_actions_related_lists.htm&type=5

それは今では実際に可能です。それについてはここで読むことができます:

I think this is pretty old - but sharing my finding for others benefit. For email html body in quick action (send email) - use &"
"& - this will include the line breaks. example: "text1"&
"&"text2" will be-

text1

text2

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

image.png

understood! In order to add more actions, for the object whose lightning page you are showing in the screenshot, you will have to go to Object Manager --> Page Layouts and in the relevant page layout, add drag the new Action (from the "Mobile & Lightning Actions" category) to the section "Salesforce Mobile and Lightning Experience Actions" of the page layout. After saving that you should see the third action the Activity Component.

わかりました!さらにアクションを追加するには、スクリーンショットでライトニング ページが表示されているオブジェクトに対して、[オブジェクト マネージャー] --> [ページ レイアウト] に移動し、関連するページ レイアウトで新しいアクションをドラッグして追加する必要があります (「モバイル アクション」から) & Lightning アクション」カテゴリ) をページレイアウトの「Salesforce モバイルおよび Lightning Experience アクション」セクションに追加します。これを保存すると、3 番目のアクションであるアクティビティ コンポーネントが表示されるはずです。

表示されない

確認すること

  1. レイアウトに追加したものが実際にクイックアクションであることを確認し、それをクラシックセクションではなく Salesforce Lightning およびモバイルアクションセクションに追加していることを再確認してください。
  2. テスト中にページを表示している自分またはユーザーが、そのクイック アクションで使用されているすべての関連フィールドおよびオブジェクトにアクセスできることを確認してください。
  3. クイック アクションがレコード タイプを持つオブジェクトを参照している場合は、それも設定されていることを確認してください。たとえば、タスク オブジェクトにレコード タイプがあり、通話の記録を追加しようとしても表示されない場合は、通話の記録クイック アクションがまだどのレコード タイプにも関連付けられていないことが原因である可能性があります。
  4. リフレッシュ、リフレッシュ、リフレッシュ、キャッシュクリア、リフレッシュ。キャッシュをもっと早くクリアしたほうがよいかもしれませんが、ポイントはわかります。Lightning のほとんどはサーバー側ではなくクライアント側で構築されているため、ページレイアウトのキャッシュされたバージョンが残る可能性があります。つまり、更新を行って機能しているはずなのに、単純に機能していないということになります。キャッシュの問題が原因で表示されます。

上記のすべてを試してもうまくいかない場合は、Lightning クイック アクションに関するドキュメントの一部を確認してください。この記事の冒頭で Cases を個別に呼び出すという私のコメントと同様に、Lightning にはクイック アクションに関してまだ奇妙な癖があり、それを嗅ぎ分ける必要があるかもしれません。

機能しない

I walked away from the issue after work and have come back to this. Apparently I was in the quick actions not the mobile and lightening actions the whole time.

仕事が終わってからその問題から離れましたが、またこの問題に戻ってきました。どうやら私はずっとモバイルアクションやライトニングアクションではなく、クイックアクションをしていたようです。

ラベル名を設定できない

image.png

Select None for Standard Label Type

image.png

ページレイアウトに追加できない?

image.png

Please check this article.

Email body section does not load in the Email composer
https://help.salesforce.com/s/articleView?id=000384148&type=1

クイックアクションとApex

資産オブジェクトは一括更新のクイックアクションは機能しない

資産標準オブジェクトの一括更新クイックアクション

主従関係では使えない?

Have a look at this:

https://help.salesforce.com/s/articleView?id=000387421&type=1

"Custom Objects which are on the detail side of a master-detail relationship cannot be created via a Global Action. A detail object record requires a master record, and so can't be created in a non-entity-specific context."

「マスター/ディテール関係のディテール側にあるカスタム オブジェクトは、グローバル アクション経由では作成できません。ディテール オブジェクト レコードにはマスター レコードが必要なので、エンティティ固有でないコンテキストでは作成できません。」

レコードタイプ

Are there record types on this Project record? If yes, is the New Project global action set to 'master' instead of an actual record type?

このプロジェクト レコードにレコード タイプはありますか?はいの場合、新しいプロジェクトのグローバル アクションは、実際のレコード タイプではなく「マスター」に設定されていますか?

クイック アクションは作成されたレコードにリダイレクトする必要があります

私が発見したのは、クイックアクションで成功メッセージを追加/定義しない場合、レコードが作成された後、画面の上部にレコードの名前を含むトーストメッセージが表示されることです。

それをクリックすると、新しく作成されたレコードに移動します。

image.png

やっぱり

でこのトーストを拾っているなぁ。

作成されたレコードに移動

残念ながらモバイルアプリでは機能しないです

Product Consumed オブジェクトがグローバル アクション ターゲット オブジェクト リストに表示されない

Please check this article.

Object not found in Target Object in Global Actions in Salesforce
https://www.infallibletechie.com/2018/06/object-not-found-in-target-object-in.html

資産オブジェクトは一括更新のクイックアクションは機能しない

資産標準オブジェクトの一括更新クイックアクション

Got the answer from Salesforce Support and in short this is one of the Salesforce limitations. Here is their response: Just to set expectation, Quick Actions are not supported in Asset object due to the design complexity of this object.

Salesforce サポートから回答を得ました。要するに、これは Salesforce の制限の 1 つです。彼らの反応は次のとおりです。予想を設定するために、このオブジェクトの設計が複雑なため、クイック アクションはアセット オブジェクトではサポートされていません。

意味がわからん

モバイル、IOS

Maximum view state size limit (170KB) exceeded. Actual view state size for this page was 230.063KB

I think there is a high possibility that it will not work if there are a large number of records.

Document upload error 'Maximum view state size limit (170KB) exceeded'
https://help.salesforce.com/s/articleView?id=000384993&type=1

レコード数が多い場合は動作しない可能性が高いと思います。

ドキュメントアップロードエラー「ビューステートの最大サイズ制限 (170KB) を超えました」

ボタンの種別は「カスタム Visualforce」が表示されない

表示されないユーザのプロファイルを確認してください。
Visualforce ページのアクセスに使いたいページを追加してください。

standardController="Account"のように設定しておけば、Account(取引先)オブジェクトでは選択できると思います。 選択できないオブジェクトの設定を確認してみてください。

<apex:page docType="html-5.0" standardController="Account" extensions="GMN_Getsuji" tabStyle="Account" id="thePage" showHeader="true" sidebar="true" lightningStylesheets="true">

クイックアクションとLWC

この問題を解決するには、まずクイック アクションを閉じて、現在のページを更新する必要があります。
したがって、まずクイックアクションコンポーネントを閉じます

To solve this problem first you need to close the quick action and refresh the current page
so first close the quick action component

import { CloseActionScreenEvent } from 'lightning/actions';

closeQuickAction() {

    this.dispatchEvent(new CloseActionScreenEvent());

}

https://salesforce.stackexchange.com/questions/356845/force-refresh-f5-of-a-page-after-lwc-quick-action

Messaging Session オブジェクト

image.png

不思議ですが、Caseは選択できます。しかしケースをオブジェクトマネージャーで確認してもこのMessaging Session オブジェクトとの参照関係はないですね。

今回はケースを選びたいという事だったので、ケースオブジェクトにMessaging Session オブジェクトの参照フィールドを作ることで回避できました。

Try creating a reference field for the MessagingSession object in the Lead object.

Lead オブジェクトに MessagingSession オブジェクトの参照フィールドを作成してみてください

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