製品をチェック

無償トライアル:

無償トライアルへ

製品の情報と無償トライアルへ:

Excel Add-In for ADP

ADP Excel アドインは、Microsoft Excel からリアルタイムなADP データに直接接続できるパワフルなツールです。Excel を使用して、ADP データの読み、書き、更新を実行できます。一括インポート / エクスポート / 更新、データクレンジング、重複データの除外、Excel ベースのデータ分析などに最適です。

データ連携でお困りですか?

お問い合わせ

CDATAQUERY 関数を使って、Excel スプレッドシートにADP を自動挿入


CDATAQUERY 関数を使ってデータ、スプレッドシートの任意のセルにADP データを自動挿入、編集、削除が可能に。


adp ロゴ画像
excel ロゴ画像

Excel

Excel ロゴ画像

CData Excel Add-In for ADP の関数を使って、スプレッドシートにデータを取り込むことができます。下記の3つの手順では、次のタスクを自動化する方法について説明します:ユーザー定義の値でADP を検索し、その結果をExcel スプレッドシートに出力します。

CDATAQUERY 関数の構文は次のとおりです: =CDATAQUERY(Query, [Connection], [Parameters], [ResultLocation]);

この関数に入力する値は以下の3つです:

  • Query:取得したいADP data レコードの宣言、もしくは修正を簡単な構文で記述。
  • Connection:ADPConnection1 のような接続名、もしくは接続文字列を入力。接続文字列は、ADP への接続に必要なプロパティのセミコロン区切りとなります。一般的な接続文字列は次のとおりです:
    • OAuthClientId
    • OAuthClientSecret
    • SSLClientCert
    • SSLClientCertPassword

    Connect to ADP by specifying the following properties:

    • SSLClientCert: Set this to the certificate provided during registration.
    • SSLClientCertPassword: Set this to the password of the certificate.
    • UseUAT: The connector makes requests to the production environment by default. If using a developer account, set UseUAT = true.
    • RowScanDepth: The maximum number of rows to scan for the custom fields columns available in the table. The default value will be set to 100. Setting a high value may decrease performance.

    The connector uses OAuth to authenticate with ADP. OAuth requires the authenticating user to interact with ADP using the browser. For more information, refer to the OAuth section in the Help documentation.

  • ResultLocation:結果のアウトプットを開始するセル。

スプレッドシートのセルをクエリのインプットとして渡す

下記の処理では、すべての関数インプットをひとつ目のカラムでオーガナイズするスプレッドシートができます。

  1. 関数をインプットするセルを定義します。接続インプットに加えて、AssociateOID のように、ADP の検索に使われるフィルタ用の基準を定義する追加のインプットを入力します。
  2. 別のセルに、上で定義したユーザーインプットセルからセルの値を参照する関数を書きます。住所などスペースを含む可能性のある値は、シングルクオートで囲みます。
  3. =CDATAQUERY("SELECT * FROM Workers WHERE AssociateOID = '"&B5&"'","OAuthClientId="&B1&";OAuthClientSecret="&B2&";SSLClientCert="&B3&";SSLClientCertPassword="&B4&";Provider=ADP",B6) Formula inputs used in this example. (Google Apps is shown.)
  4. フィルタを変更してデータを変更します。 The outputs of the formula. (Google Apps is shown.)