Retrieve

概要 

指定した条件に基づいてアカウントを取得します。

構文 

Retrieve(1)

関数のプロパティ 

序数説明
1string必須アカウントを検索するために使用する条件。フィルター式、またはフィルターと追加の検索パラメーターを含む JSON オブジェクトを使用します。

例 

このサンプルコードは、指定されたフィルター条件に基づいてアカウントを取得します。

1var getAcct = Account.Retrieve({Property:"CustomerKey",SimpleOperator:"equals",Value:"MyAccount"});

このサンプルコードは、適用可能なすべてのアカウントを照会し、フィルター条件に基づいてアカウントを取得します。

1var query = {};
2
3query.Filter = '{Property:"CustomerKey",SimpleOperator:"equals",Value:"MyAccount"}';
4query.QueryAllAccounts = true;
5
6var getAcct = Account.Retrieve(query);