LoginSignup
0
0

flex cardのエラー

Last updated at Posted at 2023-09-05

flex cardのまとめに 戻る

エラー

For our scenario we had a discussion with Salesforce and were told that IDX and flexcards did not work anymore. That may or may not have changed since.

We have now enabled the metadata API for OmniStudio to move stuff around, which feels better anyway. from an automation point of view.

私たちのシナリオでは、Salesforce と話し合いましたが、IDX とフレックスカードはもう機能しないと言われました。それはそれ以来変わっていないかもしれないし、変わっていないかもしれません。

OmniStudio のメタデータ API を有効にして、データを移動できるようにしました。とにかく快適です。自動化の観点から。

This issue has been resolved. The merge fields were not working because I had turned off repeat and the input was an array.

この問題は解決されました。繰り返しをオフにして入力が配列だったため、差し込みフィールドは機能しませんでした。

これは、セットアップ中に提供したテスト データを使用してフライアウトがプレビューで読み込まれるためだとしか考えられませんが、展開後はそのようなことは起こりません。 DataSource 構成を確認してみます。

For our scenario we had a discussion with Salesforce and were told that IDX and flexcards did not work anymore. That may or may not have changed since.

We have now enabled the metadata API for OmniStudio to move stuff around, which feels better anyway. from an automation point of view.

私たちのシナリオでは、Salesforce と話し合いましたが、IDX とフレックスカードはもう機能しないと言われました。それはそれ以来変わっていないかもしれないし、変わっていないかもしれません。

OmniStudio のメタデータ API を有効にして、データを移動できるようにしました。とにかく快適です。自動化の観点から。

Already fixed remote site settings but still cannot see Preview button in flex card

Already fixed remote site settings but still cannot see Preview button in flex card

I have fixed the issue by adding “พี่”CarddesignerHeader” to page layout

image.png

When I create New flex card, system creating Omni UI card and Not flex card. any idea?

image.png

image.png

これも同じようです。

image.png

You need to activate the cards in a order. First the any child cards need to be activated before the parent card. During the activation process Flexcard creates a new LWC component and since it is not able to reference the child comp. it is failing. Normally during the actual deployment vlocityDX / VlocityIDX takes care of these steps by ordering them

カードを順番に有効化する必要があります。まず、親カードの前に子カードをアクティブにする必要があります。アクティブ化プロセス中に、Flexcard は新しい LWC コンポーネントを作成しますが、子コンポーネントを参照できないためです。それは失敗しています。通常、実際の展開中に vlocityDX / VlocityIDX はこれらの手順を順番に処理します。

フレックスカードが存在するレコードからデータラプターにレコードフィールド値を渡すことはできますか?

{recordId} is the id present in the url.

{record} is the record you will get from the datasource(dataraptor) based on the {recordId} you pass into the dataraptor. which means you will not have the node {record.Relationship_ID__c} before you call the datasource.

In your case I assume you want to get the Relationship_ID__c from the current record and you want to get all other finServ_financialAccount__c records whose Id is equal to Relationship_ID__c of the current record.

So, First you have to add the object of current record (CurrentRecord) to extract Relationship_ID__c of the current record

then you have to add the finServ_financialAccount__c object and add the filter (CurrentRecord:Relationship_ID__c) something like below.

image.png

image.png

image.png

I had two Chrome windows open, each associated to a different profile. I was only logged into the org from the one profile. It would not activate. I closed these tabs and on the last tab, chose Logout to close the session. Then logged into the org on the other Chrome window and it activated no problem.

2 つの Chrome ウィンドウを開いて、それぞれが異なるプロファイルに関連付けられていました。1 つのプロファイルからのみ組織にログインしました。活性化しません。これらのタブを閉じ、最後のタブで [ログアウト] を選択してセッションを閉じました。次に、別の Chrome ウィンドウで組織にログインすると、問題なくアクティブ化されました。

ユーザーの役割に基づいてフレックスカード要素を条件付きで表示する

You, have to use User.userRole (without merge field syntax in the flex card
You can see the context variables in the flex card data json like below

image.png

And if you want to apply condition based on the context variable you can configure it like below (Please note: I have not used merge field syntax)

image.png

Flexipage のルックアップ フィールドの基になる「名前」(またはルックアップに関連するフィールド)をレンダリングする方法を知っている人はいますか? レンダリングされたルックアップ ID のみが表示されます。私の使用例は、User オブジェクトへのルックアップがあり、そのルックアップ フィールドをページにプルするときに表示される ID ではなく、Flexipage でユーザーのフルネームを表示できるようにしたいということです。

When you configure your lookup you mention the Label and Value. Label is what is displayed on the dropdown, value is what goes into your JSON. They can be the same or different - Eg: Label will be Name and Value will be Id.

I have done a short tutorial on using Lookup Element that might help you.

https://www.youtube.com/watch?v=7df0cQqZncE

ルックアップを設定するときは、ラベルと値を指定します。ラベルはドロップダウンに表示されるもので、値は JSON に入力されるものです。それらは同じでも異なっていても構いません - 例: ラベルは名前、値は ID になります。

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