すべての製品グループの取得
get
/crmRestApi/resources/11.13.18.05/catalogProductGroups
リクエスト
問合せパラメータ
- 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
コレクションを検索するための事前定義済ファインダとして使用されます。
フォーマット : ?finder=<finderName>;<variableName>=<variableValue>,<variableName2>=<variableValue2>
使用可能なファインダ名および対応するファインダ変数を次に示します:- GetParentProductGroups : 指定された行ファインダを持つ親製品グループを検索します。
ファインダ変数:- Bind_InventoryItemId; integer.
- Bind_ProductGroupId; integer.
- Bind_UsageCode; string;製品グループは使用法コードをバインドします。
- Bind_UsageModeCode; string.
- PrimaryKey : 指定した主キーで製品グループを検索します。
ファインダ変数:- ProdGrpDetailsId; integer.
- ProductGroupDenormId; integer;カタログ製品グループの一意の識別子。
- GetParentProductGroups : 指定された行ファインダを持つ親製品グループを検索します。
- 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問合せパラメータを使用してこの収集リソースをフィルタできます:
- 奥行き;整数;パス内の最初と最後の製品グループのレベルの差。
- FilterByTM; string; TMによるフィルタ。
- FirstProdGrpId; integer; リストの最初の製品グループの一意の識別子。
- InternalName; string;製品グループの内部名。
- LastUpdateDate; string; 製品グループが最後に更新された日時。
- ModelConfigAttributes; string;製品グループの構成属性。
- ModelFamily; string;製品グループに関連付けられたモデル・ファミリの名前。
- ModelLine; string;製品グループに関連付けられたモデル行の名前。
- ModelName; string;製品グループのモデル名。
- OverrideAllowSelectionYN; string;上書きでは、製品グループを選択できます。
- ParentProductGroupId; integer;パス内の最後から2番目のノードに対する親製品グループの一意の識別子。
- PathId; integer;パスの一意の識別子。
- ProdGrpDetailsId; integer;製品グループ詳細の一意の識別子。
- ProductGroupDenormId; integer;製品グループ非正規化の一意の識別子。
- ProductGroupDescription; string;実行時の表示に使用される翻訳済製品グループの説明。
- ProductGroupId; integer; 製品グループの一意の識別子。
- ProductGroupName; string;実行時の表示に使用される製品グループの翻訳済名。
- ProductGroupReferenceNumber; string;製品グループの参照番号。
- ReferenceNumber; string;外部システムとの統合のための参照番号。
- RevenueCategoryCode; string;製品グループに関連付けられた収益カテゴリ・コード。
- RevenueRoleCode; string;製品グループに関連付けられた収益コード。
- UsageCode; string; 製品グループに関連付けられた使用コード。
- UsageModeCode; string;製品グループに関連付けられた使用モード・コード。
- UsageRootFlag; 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のデフォルト・バージョンを選択します。
ルート・スキーマ : catalogProductGroups
タイプ:
ソースを表示
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"の場合の推定行数。それ以外の場合、カウントは含まれません。
ネストされたスキーマ : catalogProductGroups-item-response
タイプ:
ソースを表示
object-
AllowDuplicateContentFlag: string
タイトル:
Allow Duplicate Children最大長:1デフォルト値:Y製品グループのコンテンツ・フラグを示します。 -
AllowSelectionFlag: string
タイトル:
Allow Selection最大長:1製品グループを選択できるかどうかを示します。 -
AttachmentEntityName: string
読取り専用:
true製品グループの添付エンティティ名。 -
Attachments: array Attachments
タイトル:
Attachments添付リソースは、製品グループの添付を表示するために使用されます。 添付には、製品グループに関する追加情報が含まれます。 -
Depth: integer (int64)
読取り専用:
trueパス内の最初の製品グループと最後の製品グループのレベルの差異。 -
FilterByTM: string
最大長:
1TMによるフィルタ。 -
FirstProdGrpId: integer (int64)
読取り専用:
trueリストの最初の製品グループの一意の識別子。 -
InternalName: string
タイトル:
Name読取り専用:true最大長:150製品グループの内部名。 -
LastUpdateDate: string (date-time)
読取り専用:
true製品グループが最後に更新された日時。 -
links: array Links
タイトル:
Linksリソース・インスタンスに関連付けられたリンク関係。 -
ModelConfigAttributes: string
タイトル:
Model Attributes最大長:4000製品グループの構成属性。 -
ModelFamily: string
タイトル:
Model Family最大長:1000製品グループに関連付けられているモデル・ファミリの名前。 -
ModelLine: string
タイトル:
Model Line最大長:1000製品グループに関連付けられているモデル明細の名前。 -
ModelName: string
タイトル:
Model最大長:1000製品グループのモデル名。 -
OverrideAllowSelectionYN: string
タイトル:
Override Allow Selection最大長:1上書きでは、製品グループを選択できます。 -
ParentProductGroupId: integer (int64)
読取り専用:
trueパス内の最後から2番目のノードに対する親製品グループの一意の識別子。 -
PathId: integer (int64)
読取り専用:
trueパスの一意の識別子。 -
ProdGrpDetailsId: integer (int64)
製品グループ詳細の一意の識別子。
-
ProductGroupDenormId: integer (int64)
読取り専用:
true製品グループ非正規化の一意の識別子。 -
ProductGroupDescription: string
タイトル:
Description読取り専用:true最大長:1000ランタイム表示に使用される翻訳済製品グループ摘要。 -
ProductGroupId: integer (int64)
読取り専用:
true製品グループの一意の識別子。 -
ProductGroupName: string
タイトル:
Display読取り専用:true最大長:250ランタイム表示に使用される製品グループの翻訳済名。 -
ProductGroupReferenceNumber: string
タイトル:
Reference Number最大長:50製品グループの参照番号。 -
ProductGroupTranslation: array Translations
タイトル:
Translations製品グループ・リソースは、言語コード、翻訳済製品グループ名および摘要、製品グループIDの表示に使用されます。 -
ReferenceNumber: string
タイトル:
Reference Number読取り専用:true最大長:50外部システムとの統合の参照番号。 -
RevenueCategoryCode: string
タイトル:
Revenue Category最大長:30製品グループに関連付けられた収益カテゴリ・コード。 -
RevenueRoleCode: string
タイトル:
Revenue Role最大長:30製品グループに関連付けられている収益コード。 -
UsageCode: string
最大長:
255製品グループに関連付けられた使用コード。 -
UsageModeCode: string
最大長:
255製品グループに関連付けられた使用モード・コード。 -
UsageRootFlag: string
タイトル:
Root Catalog最大長:1デフォルト値:Nグループがルート・グループであるかどうかを示します。
ネストされたスキーマ : 添付ファイル
タイプ:
arrayタイトル:
Attachments添付リソースは、製品グループの添付を表示するために使用されます。 添付には、製品グループに関する追加情報が含まれます。
ソースを表示
ネストされたスキーマ : 翻訳
タイプ:
arrayタイトル:
Translations製品グループ・リソースは、言語コード、翻訳済製品グループ名および摘要、製品グループIDの表示に使用されます。
ソースを表示
ネストされたスキーマ : catalogProductGroups-Attachments-item-response
タイプ:
ソースを表示
object-
AsyncTrackerId: string
タイトル:
Asynchronous Upload Tracker Idファイルのアップロードを支援するために添付UIコンポーネントで排他的に使用するために指定された属性。 -
AttachedDocumentId: integer (int64)
タイトル:
Attached Document Id添付文書の一意の識別子。 -
CategoryName: string
タイトル:
Category最大長:30添付のカテゴリ。 - ContentRepositoryFileShared: boolean
-
CreatedBy: string
タイトル:
Created By読取り専用:true最大長:255添付を作成したユーザー。 -
CreatedByUserName: string
タイトル:
Created By User Name読取り専用:true添付を作成した個人のユーザー名。 -
CreationDate: string (date-time)
タイトル:
Creation Date読取り専用:true添付レコードが作成された日時。 -
DatatypeCode: string
タイトル:
Type最大長:30デフォルト値:FILEデータ型に関連付けられたコード。 -
Description: string
タイトル:
Description最大長:255添付の説明。 -
DmDocumentId: string
最大長:
255文書の一意の識別子。 -
DmFolderPath: string
タイトル:
Dm Folder Path最大長:1000添付ファイルのパス。 -
DmVersionNumber: string
最大長:
255ドキュメントのバージョン番号。 -
DownloadInfo: string
タイトル:
DownloadInfo添付ファイルをプログラムで取得するために使用される情報を含む文字列として表されるJSONオブジェクト。 -
ErrorStatusCode: string
タイトル:
Error Status Code添付のエラー・タイプ(ある場合)を示すコード。 -
ErrorStatusMessage: string
タイトル:
Error Status Message添付のエラー・メッセージ(ある場合)。 -
ExpirationDate: string (date-time)
タイトル:
Expiration Date添付ファイルのコンテンツの有効期限。 -
FileContents: 文字列(バイト)
タイトル:
File Contents添付のコンテンツ。 -
FileName: string
タイトル:
File Name最大長:2048添付ファイルの名前。 -
FileUrl: string
タイトル:
File Url添付のファイルURL。 -
FileWebImage: 文字列(バイト)
タイトル:
File Web Image読取り専用:trueソースが変換可能なイメージの場合、.png形式で表示されるファイルのbase64エンコード・イメージ。 -
LastUpdateDate: string (date-time)
タイトル:
Last Update Date読取り専用:true添付が最後に更新された日付。 -
LastUpdatedBy: string
タイトル:
Last Updated By読取り専用:true最大長:255添付を最後に更新したユーザー。 -
LastUpdatedByUserName: string
タイトル:
Last Updated By User読取り専用:true添付を最後に更新した個人のユーザー名。 -
links: array Links
タイトル:
Linksリソース・インスタンスに関連付けられたリンク関係。 -
Title: string
タイトル:
Title添付のタイトル。 -
UploadedFileContentType: string
タイトル:
Uploaded File Content Type添付ファイルのコンテンツ・タイプ。 -
UploadedFileLength: integer
タイトル:
File Size添付ファイルの長さ。 -
UploadedFileName: string
タイトル:
Uploaded File Name添付ファイルの名前。 -
UploadedText: string
タイトル:
Uploaded Text添付ファイルのテキスト。 -
Uri: string
タイトル:
Uri最大長:4000添付のURI。 -
Url: string
タイトル:
Url最大長:4000添付のURL。 -
UserName: string
タイトル:
User Name読取り専用:true最大長:255添付を作成した個人のユーザー名。
ネストされたスキーマ : リンク
タイプ:
ソースを表示
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値を変更します。
ネストされたスキーマ : catalogProductGroups-ProductGroupTranslation-item-response
タイプ:
ソースを表示
object-
ISOLanguage: string
読取り専用:
true最大長:2英語やデンマーク語など、製品グループに関連付けられたISO言語。 -
ISOTerritory: string
タイトル:
Territory読取り専用:true最大長:2ISOテリトリに関連付けられたコード。 -
Language: string
最大長:
4製品グループが翻訳される言語。 -
LanguageCode: string
タイトル:
Language Code読取り専用:true最大長:4639-1en (英語)や639-1da (デンマーク語)などの製品グループに関連付けられた言語コード。 -
links: array Links
タイトル:
Linksリソース・インスタンスに関連付けられたリンク関係。 -
ProdGroupDescription: string
タイトル:
Description最大長:1000製品グループの翻訳済摘要。 -
ProdGroupId: integer (int64)
製品グループの一意の識別子。
-
ProdGroupName: string
タイトル:
Product Group最大長:250製品グループの翻訳済名。
例:
次の例は、cURLを使用してRESTリソースに対する取得リクエストを発行することによって、すべてのカタログ製品グループを取得する方法を示しています。
cURLコマンド
curl -u <username:password> \ -X https://servername.fa.us2.oraclecloud.com/fscmRestApi/resources/11.13.18.05/catalogProductGroups
レスポンス本文の例
次に、JSON形式のレスポンス本文の例を示します。
{
"items": [
{
"ProdGrpDetailsId": 100000011836340,
"UsageRootFlag": "Y",
"ProductGroupReferenceNumber": "100000011628006",
"RevenueRoleCode": null,
"RevenueCategoryCode": null,
"AllowDuplicateContentFlag": "N",
"AllowSelectionFlag": "Y",
"ModelName": null,
"ModelConfigAttributes": null,
"LastUpdateDate": "2014-08-05T23:46:08.607+00:00",
"ModelFamily": null,
"ModelLine": null,
"PathId": 100000011836004,
"Depth": 0,
"FirstProdGrpId": 100000011628005,
"ParentProductGroupId": null,
"ProductGroupDenormId": 100000011836003,
"ProductGroupId": 100000011628005,
"InternalName": "WAVE_Electronics",
"ReferenceNumber": "100000011628006",
"ProductGroupName": "Electronics",
"ProductGroupDescription": "Electronics contains computers, printers and TVs\n",
"UsageCode": null,
"UsageModeCode": null,
"FilterByTM": null,
"AttachmentEntityName": "QSC_PROD_GROUPS_B",
"OverrideAllowSelectionYN": null,
"links": [
{
"rel": "self",
"href": "https://servername.fa.us2.oraclecloud.com/crmRestApi/resources/11.13.18.05/catalogProductGroups/00020000000EACED0005770800005AF3112EDBB40000000EACED0005770800005AF3112EDA63",
"name": "catalogProductGroups",
"kind": "item",
"properties": {
"changeIndicator": "ACED0005737200136A6176612E7574696C2E41727261794C6973747881D21D99C7619D03000149000473697A65787000000001770400000001737200116A6176612E6C616E672E496E746567657212E2A0A4F781873802000149000576616C7565787200106A6176612E6C616E672E4E756D62657286AC951D0B94E08B02000078700000000478"
}
},
{
"rel": "canonical",
"href": "https://servername.fa.us2.oraclecloud.com/crmRestApi/resources/11.13.18.05/catalogProductGroups/00020000000EACED0005770800005AF3112EDBB40000000EACED0005770800005AF3112EDA63",
"name": "catalogProductGroups",
"kind": "item"
},
{
"rel": "lov",
"href": "https://servername.fa.us2.oraclecloud.com/crmRestApi/resources/11.13.18.05/catalogProductGroups/00020000000EACED0005770800005AF3112EDBB40000000EACED0005770800005AF3112EDA63/lov/LookupPVOForRevenueCategoryCode",
"name": "LookupPVOForRevenueCategoryCode",
"kind": "collection"
},
{
"rel": "lov",
"href": "https://servername.fa.us2.oraclecloud.com/crmRestApi/resources/11.13.18.05/catalogProductGroups/00020000000EACED0005770800005AF3112EDBB40000000EACED0005770800005AF3112EDA63/lov/LookupPVOForRevenueRoleCode",
"name": "LookupPVOForRevenueRoleCode",
"kind": "collection"
},
{
"rel": "child",
"href": "https://servername.fa.us2.oraclecloud.com/crmRestApi/resources/11.13.18.05/catalogProductGroups/00020000000EACED0005770800005AF3112EDBB40000000EACED0005770800005AF3112EDA63/child/Attachments",
"name": "Attachments",
"kind": "collection"
},
{
"rel": "child",
"href": "https://servername.fa.us2.oraclecloud.com/crmRestApi/resources/11.13.18.05/catalogProductGroups/00020000000EACED0005770800005AF3112EDBB40000000EACED0005770800005AF3112EDA63/child/ProductGroupTranslation",
"name": "ProductGroupTranslation",
"kind": "collection"
}
]
},
.....
],
"count": 25,
"hasMore": true,
"limit": 25,
"offset": 0,
"links": [
{
"rel": "self",
"href": "https://servername.fa.us2.oraclecloud.com/crmRestApi/resources/11.13.18.05/catalogProductGroups",
"name": "catalogProductGroups",
"kind": "collection"
}
]
}