LoginSignup
0
0

DataRaptor Extractのまとめ

Last updated at Posted at 2023-11-13

OmniStudioに戻る

REPLACE という関数はありません- https://help.salesforce.com/s/articleView ? language=en_US&id=sf.os_function_reference_56716.htm&type=5

DataRaptor 式で呼び出すか、OmniScript で値を設定できるカスタム関数を Apex で作成することもできます。詳細は次のリンクを参照https://help.salesforce.com/s/articleView? language=en_US&id=sf.os_sample_apex_code_for_a_custom_function_57569.htm&type=5

DataRaptor Turbo Extract事前入力できない

JSON パーサーが OmniScript にデータ JSON (ソースは関係ありません) を事前に入力するには、構造が一致する必要があります。ご覧のとおり、あなたの場合、それらは一致しません。

選択肢は 3 つあります。

  1. OS 構造に一致するようにデータ JSON を変換します。DR Turbo を使用して変換を行うことはできません。DR Extract を使用する必要があります。これが最も簡単なオプションです。

以下に例を示します。出力 JSON パスが OmniScript の現在の対応する要素名と正確に一致していることを確認してください。

image.png

2. データ JSON と一致するように OS の構造を変更します。通常はこれを行うことができますが、この特定のインスタンスでは、データ JSON 内に同じ名前の複数のキーがあるため、課題に直面することになります。

3. ステップの前に SetValues アクションを使用して、データ JSON を OS に手動でマッピングします。

I don't think you can run subquery or add custom logic. Kindly review below Idea link for same.

https://ideas.salesforce.com/s/idea/a0B8W00000GdpA8UAJ/add-custom-logic-for-andor-conditions-in-dr-extract

設定

Have you checked what exactly going to Dataraptor as search key for second time.

As you are using dataraptor in edit block there might be chance that sourcevalue is going as wrong value to DR. Try using AccountName|n source format.

2回目の検索キーとして Dataraptor に何が入力されるのかを確認しましたか。

編集ブロックで dataraptor を使用しているため、sourcevalue が間違った値として DR に渡される可能性があります。AccountName|n ソース形式を使用してみてください。

datatable columns [object Object]

The Turbo DR JSON will be formatted as an array with a single object with your Output Path as Top Level key and results as array records inside. Your JSON structure would be different.

Eg:

image.png

You Data Table expects an array or records which your SOQL provides directly. When you use DR Turbo, you get an array with a single Object of array, so it cannot display as is.

You can do two things.

  1. Use DR instead of DR Turbo, and make sure your output is formatted as an array og records.
  2. Filter your Result JSON on your Data Source Configuration to use the inner array.

Eg:
image.png

複数の DR を使用した場合の問題

数式

{
"error": "Formula expression is invalid: SPLIT is not a Function or Operator"
}

I did this in the integration procedure and it worked:
image.png

SUBSTITUTEが使えないので、その回避方法

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