すべての参照を取得します。
get
/crmRestApi/resources/11.13.18.05/fndStaticLookups
リクエスト
問合せパラメータ
- expand: string
このパラメータを指定すると、指定した子がリソース・ペイロードに含まれます(リンクのみでなく)。 この問合せパラメータの値は"all"または""です。 カンマをセパレータとして使用して、複数の子を指定できます。 例: ?expand=Employees,Localizations. ネストされた子は、"Child.NestedChild"の書式に従って指定することもできます(例): ?expand=Employees.Managers). ネストされた子が指定されている場合(例): Employees.Managers)。欠落している子は暗黙的に処理されます。 たとえば、"?expand=Employees.Managers"は"?expand=Employees,Employees.Managers"と同じです(これにより、従業員とマネージャが展開されます)。
- fields: string
このパラメータは、リソース・フィールドをフィルタします。 指定されたフィールドのみが返されます。つまり、フィールドが指定されていない場合、フィールドは返されません(リンクのみを取得する場合に便利です)。 間接子リソースが指定されている場合(例): Employees.Managers)。欠落している子は暗黙的に処理されます。 たとえば、"?fields=Employees.Managers:Empname"は"?fields=;Employees:;Employees.Managers:Empname" (これはマネージャの"Empname"フィールドのみを返す)と同じです。この問合せパラメータの値は、リソース・フィールドのリストです。 属性は直接にすることができます(例): 従業員または間接(例): Employees.Managers) child. 拡張問合せパラメータと組み合せることはできません。 両方を指定した場合、フィールドのみが考慮されます。
フォーマット : ?fields=Attribute1,Attribute2
子リソースのフィールドの書式 : ?fields=Accessor1:Attribute1,Attribute2 - finder: string
コレクションを検索するための事前定義済ファインダとして使用されます。
Format ?finder=<finderName>;<variableName>=<variableValue>,<variableName2>=<variableValue2>
使用可能なファインダ名および対応するファインダ変数を次に示します- LookupTypeActiveEnabledOrBindCodeFinderアクティブで有効になっている参照タイプ、またはバインド・コードと一致する参照タイプのすべての参照を検索します。
ファインダ変数- BindCurrentDate; string;
- BindLookupCode; string;
- BindLookupType; string;
- Bind_ParentLookupCode; string;
- Bind_ParentSetidDetermType; string;
- Bind_ParentSetidDetermValue; string;
- Bind_RelationshipId; integer;
- LookupTypeFinder参照タイプ内のすべての参照を検索します。
ファインダ変数- BindLookupType; string;
- Bind_ParentLookupCode; string;
- Bind_ParentSetidDetermType; string;
- Bind_ParentSetidDetermValue; string;
- Bind_RelationshipId; integer;
- LookupTypeIsActiveEnabledFinderアクティブで有効になっている参照タイプのすべての参照を検索します。
ファインダ変数- BindCurrentDate; string;
- BindLookupType; string;
- Bind_ParentLookupCode; string;
- Bind_ParentSetidDetermType; string;
- Bind_ParentSetidDetermValue; string;
- Bind_RelationshipId; integer;
- LookupTypeIsActiveFinderアクティブな参照タイプ内のすべての参照を検索します。
ファインダ変数- BindCurrentDate; string;
- BindLookupType; string;
- Bind_ParentLookupCode; string;
- Bind_ParentSetidDetermType; string;
- Bind_ParentSetidDetermValue; string;
- Bind_RelationshipId; integer;
- LookupTypeIsEnabledFinder有効になっている参照タイプのすべての参照を検索します。
ファインダ変数- BindLookupType; string;
- Bind_ParentLookupCode; string;
- Bind_ParentSetidDetermType; string;
- Bind_ParentSetidDetermValue; string;
- Bind_RelationshipId; integer;
- PrimaryKey指定した主キーを持つ参照を検索します。
ファインダ変数- LookupCode; string;参照を識別するために使用されるコード
- LookupType; string;ルックアップの識別に使用する型
- LookupTypeActiveEnabledOrBindCodeFinderアクティブで有効になっている参照タイプ、またはバインド・コードと一致する参照タイプのすべての参照を検索します。
- limit: integer
このパラメータは、リソース・コレクション内で返されるリソースの数を制限します。 制限がリソース数を超えると、フレームワークは使用可能なリソースのみを返します。
- links: string
このパラメータは、単一のリソースまたはリソース・コレクションへのアクセス中に特定のリンクのみを表示するために使用できます。 パラメータ値書式は、次のカンマ区切りリストです : <link_relation>
例:
self,canonical
- offset: integer
リソース・コレクションの開始位置を定義するために使用します。 オフセットがリソース数を超えると、リソースは返されません。 デフォルト値は0です。
- onlyData: boolean
リソース・アイテム・ペイロードは、データのみを含めるようにフィルタされます(リンク・セクションなどは含まれません)。
- orderBy: string
このパラメータは、指定されたフィールドに基づいてリソース・コレクションを順序付けます。 パラメータ値は、属性名のカンマ区切りの文字列で、それぞれオプションでコロンと「asc」または「desc」が続きます。 昇順の場合は「asc」、降順の場合は「desc」を指定します。 デフォルト値は「asc」です。 たとえば、?orderBy=field1:asc,field2:descです
- q: string
この問合せパラメータは、where句を定義します。 リソース・コレクションは、指定された式を使用して問い合せられます。 この問合せパラメータの値は、1つ以上の式です。 例 : ?q=部門番号>=10および<= 30;Loc!=NY
フォーマット : ?q=expression1;expression2
次の問合せ可能属性を使用して、q問合せパラメータを使用してこの収集リソースをフィルタできます:
- CreatedBy;文字列
- CreationDate;文字列
- 説明;文字列;参照コードの説明
- DisplaySequence; integer; 参照コードを表示する順序。
- EnabledFlag; string; 参照コードが有効かどうかを示します
- EndDateActive; string;参照コードがアクティブでなくなる日付
- LastUpdateDate;文字列
- LastUpdateLogin;文字列
- LastUpdatedBy;文字列
- LookupCode; string;参照を識別するために使用されるコード
- LookupType; string;ルックアップの識別に使用する型
- 内容;文字列;参照コードの変換済表示値
- StartDateActive; string;参照コードがアクティブになる日付
- タグ;文字列;検索を記述またはフィルタするタグ
- totalResults: boolean
"?totalResults=true"の場合、リソース・コレクション表現には"推定行数"が含まれます。それ以外の場合、カウントは含まれません。 デフォルト値はfalseです。
ヘッダー・パラメータ
- Metadata-Context:
REST APIがランタイム・カスタマイズをサポートしている場合、サービスのシェイプはランタイム中に変更される可能性があります。 RESTクライアントは、これらの変更から自身を分離したり、このヘッダーを指定して最新バージョンのAPIと対話することを選択できます。 次に例を示します : Metadata-Context:sandbox="TrackEmployeeFeature".
- REST-Framework-Version:
RESTクライアントとサービスの間のプロトコル・バージョン。 クライアントがリクエストでこのヘッダーを指定しない場合、サーバーはAPIのデフォルト・バージョンを選択します。
この操作にはリクエスト本文がありません。
トップに戻る応答
サポートされるメディア・タイプ
- application/json
デフォルトのレスポンス
次の表では、このタスクに対するデフォルトのレスポンスについて説明します。
ヘッダー
- Metadata-Context(required):
REST APIがランタイム・カスタマイズをサポートしている場合、サービスのシェイプはランタイム中に変更される可能性があります。 RESTクライアントは、これらの変更から自身を分離したり、このヘッダーを指定して最新バージョンのAPIと対話することを選択できます。 次に例を示します : Metadata-Context:sandbox="TrackEmployeeFeature".
- REST-Framework-Version(required):
RESTクライアントとサービスの間のプロトコル・バージョン。 クライアントがリクエストでこのヘッダーを指定しない場合、サーバーはAPIのデフォルト・バージョンを選択します。
ルート・スキーマ : fndStaticLookups
タイプ:
ソースを表示
object
-
count(required): integer
現在の範囲で返されたリソース・インスタンスの数。
-
hasMore(required): boolean
サーバーで使用可能なリソースが、レスポンスで返されたサブセットより多いかどうかを示します。 値がtrueの場合、サーバーから取得するリソースがさらにあります。 デフォルト値はfalseです。
-
items: array Items
タイトル:
Items
コレクション内のアイテム。 -
limit(required): integer
サーバーで使用される実際のページング・サイズ。
-
links(required): array Links
タイトル:
Links
リソース・インスタンスに関連付けられたリンク関係。 -
offset(required): integer
現在のページで使用されるオフセット値。
-
totalResults: integer
"?totalResults=true"の場合の推定行数。それ以外の場合、カウントは含まれません。
ネストされたスキーマ : fndStaticLookups-item-response
タイプ:
ソースを表示
object
-
CreatedBy: string
読取り専用:
true
最大長:64
-
CreationDate: string (date-time)
読取り専用:
true
-
Description: string
タイトル:
Description
読取り専用:true
最大長:240
参照コードの説明 -
DisplaySequence: integer (int64)
タイトル:
Display Sequence
読取り専用:true
参照コードを表示する順序。 -
EnabledFlag: string
タイトル:
Enabled Flag
読取り専用:true
最大長:1
参照コードが使用可能かどうかを示します -
EndDateActive: 文字列(日付)
タイトル:
End Date
読取り専用:true
参照コードがアクティブでなくなる日付 -
LastUpdateDate: string (date-time)
読取り専用:
true
-
LastUpdatedBy: string
読取り専用:
true
最大長:64
-
LastUpdateLogin: string
読取り専用:
true
最大長:32
-
links: array Links
タイトル:
Links
リソース・インスタンスに関連付けられたリンク関係。 -
LookupCode: string
タイトル:
Lookup Code
読取り専用:true
最大長:30
参照の識別に使用されるコード -
LookupType: string
タイトル:
Lookup Type
読取り専用:true
最大長:30
参照の識別に使用されるタイプ -
Meaning: string
タイトル:
Meaning
読取り専用:true
最大長:80
参照コードの翻訳済表示値 -
StartDateActive: 文字列(日付)
タイトル:
Start Date
読取り専用:true
参照コードが有効になる日付 -
Tag: string
タイトル:
Tag
読取り専用:true
最大長:150
参照を説明またはフィルタするタグ
ネストされたスキーマ : リンク
タイプ:
ソースを表示
object
-
href: string
タイトル:
hyperlink reference
関連リソースへのURI。 -
kind: string
タイトル:
kind
許可された値:[ "collection", "item", "describe", "other" ]
関連リソースの種類。 -
name: string
タイトル:
name
関連リソースへのリンクの名前。 -
properties: object properties
-
rel: string
タイトル:
relation
許可された値:[ "self", "lov", "parent", "canonical", "child", "enclosure", "action", "custom" ]
リソース・インスタンスとの関係の名前。 例: self.
ネストされたスキーマ : properties
タイプ:
ソースを表示
object
-
changeIndicator: string
リソース・インスタンスのインジケータまたはETag値を変更します。
例:
次の例は、RESTリソースに対してGETリクエストを発行して、すべての参照を取得する方法を示しています。
cURLコマンド
curl -u <username:password> \ -X GET https://servername.fa.us2.oraclecloud.com/crmRestApi/resources/11.13.18.05/fndStaticLookups \ -H 'Content-Type: application/vnd.oracle.adf.resourceitem+json' | json_pp
レスポンス本文の例
次の例は、JSON形式のレスポンス本文のコンテンツを示しています。
{ "items": [ { "LookupType": "ZSF_FCST_GRAPHS", "LookupCode": "ZSF_GRAPH5", "Meaning": "Opportunity Contribution to Forecast", "Description": "Highlights which opportunity contributes the most revenue to a selected forecast.", "EnabledFlag": "N", "StartDateActive": "2012-08-08", "EndDateActive": "2012-08-08", "DisplaySequence": -5, "CreatedBy": "SEED_DATA_FROM_APPLICATION", "CreationDate": "2013-03-24T06:48:37.020+00:00", "LastUpdateDate": "2022-06-22T18:39:24.197+00:00", "LastUpdateLogin": "-1", "LastUpdatedBy": "SEED_DATA_FROM_APPLICATION", "Tag": null, "links": [ { "rel": "self", "href": "https://servername.fa.us2.oraclecloud.com/crmRestApi/resources/11.13.18.05/fndStaticLookups/00020000000F5A53465F464353545F4752415048530000000A5A53465F475241504835", "name": "fndStaticLookups", "kind": "item" }, { "rel": "canonical", "href": "https://servername.fa.us2.oraclecloud.com/crmRestApi/resources/11.13.18.05/fndStaticLookups/00020000000F5A53465F464353545F4752415048530000000A5A53465F475241504835", "name": "fndStaticLookups", "kind": "item" } ] }, { "LookupType": "ZSF_FCST_GRAPHS", "LookupCode": "ZSF_GRAPH4", "Meaning": "Forecasted Revenue by Sales Channel", "Description": "Identifies which products sold the best through a given sales channel within a selected forecast.", "EnabledFlag": "N", "StartDateActive": "2012-08-08", "EndDateActive": "2012-08-08", "DisplaySequence": -4, "CreatedBy": "SEED_DATA_FROM_APPLICATION", "CreationDate": "2013-03-24T06:48:37+00:00", "LastUpdateDate": "2022-06-22T18:39:24.197+00:00", "LastUpdateLogin": "-1", "LastUpdatedBy": "SEED_DATA_FROM_APPLICATION", "Tag": null, "links": [ { "rel": "self", "href": "https://servername.fa.us2.oraclecloud.com/crmRestApi/resources/11.13.18.05/fndStaticLookups/00020000000F5A53465F464353545F4752415048530000000A5A53465F475241504834", "name": "fndStaticLookups", "kind": "item" }, { "rel": "canonical", "href": "https://servername.fa.us2.oraclecloud.com/crmRestApi/resources/11.13.18.05/fndStaticLookups/00020000000F5A53465F464353545F4752415048530000000A5A53465F475241504834", "name": "fndStaticLookups", "kind": "item" } ] }, { "LookupType": "ZSF_FCST_GRAPHS", "LookupCode": "ZSF_GRAPH3", "Meaning": "Forecasted Revenue by Customer", "Description": "Identifies which customers contribute the most revenue to a selected forecast.", "EnabledFlag": "N", "StartDateActive": "2012-08-08", "EndDateActive": "2012-08-08", "DisplaySequence": -3, "CreatedBy": "SALES_ADMIN", "CreationDate": "2012-04-26T16:09:35+00:00", "LastUpdateDate": "2022-06-22T18:39:24.197+00:00", "LastUpdateLogin": "-1", "LastUpdatedBy": "SEED_DATA_FROM_APPLICATION", "Tag": null, "links": [ { "rel": "self", "href": "https://servername.fa.us2.oraclecloud.com/crmRestApi/resources/11.13.18.05/fndStaticLookups/00020000000F5A53465F464353545F4752415048530000000A5A53465F475241504833", "name": "fndStaticLookups", "kind": "item" }, { "rel": "canonical", "href": "https://servername.fa.us2.oraclecloud.com/crmRestApi/resources/11.13.18.05/fndStaticLookups/00020000000F5A53465F464353545F4752415048530000000A5A53465F475241504833", "name": "fndStaticLookups", "kind": "item" } ] }, ... }