getDataConnectorSourceFields

CRM Analytics データコネクタで使用されるソースオブジェクトのソース項目のコレクションを取得します。

構文 

1import { LightningElement, api, wire } from "lwc";
2import { getDataConnectorSourceFields } from "lightning/analyticsWaveApi";
3
4export default class GetDataConnectorSourceFields extends LightningElement {
5  @api idOrApiName; // or fetch the ID
6  @api soName; // or set the source object name
7  @wire(getDataConnectorSourceFields, {
8    connectorIdOrApiName: "$idOrApiName",
9    sourceObjectName: "$soName",
10  })
11  onGetDataConnectorSourceFields({ data, error }) {
12    if (error) {
13      console.log("getDataConnectorSourceFields ERROR:", error);
14    } else if (data) {
15      console.log("getDataConnectorSourceFields RESPONSE:", data.fields);
16    }
17  }
18}

CRM Analytics API リソース 

1GET /wave/dataConnectors/${connectorIdOrApiName}/sourceObjects/${sourceObjectName}/fields

getDataConnectorSourceFields は、この CRM Analytics API リソースを使用します。

パラメータ 

  • connectorIdOrApiName — (必須) データコネクタの ID または開発者名。
  • sourceObjectName — (必須) 項目を要求するソースオブジェクト名。

戻り値 

The Japanese Summer '24 guide is now live

日本語の Summer '24 ガイドが公開されました! 「Component Reference (コンポーネントリファレンス)」は、以前と同様にコンポーネントライブラリにあります。