ListItems
Retrieves items from lists based on the specified search criteria.
テーブル固有の情報
Select
本製品 は、SAP Concur API を使用して検索条件に基づきリストアイテムを取得します。
デフォルトでは、本製品 は各リストの最初のレベルのアイテムのみを返します。
次のクエリでは、本製品 はSAP Concur API に処理をオフロードします。
-- Retrieves a specific list item by Id
SELECT * FROM ListItems WHERE Id = '3e5ce609-bcf7-7d49-884c-baf70588d4bc';
-- Retrieves multiple list items by Id
SELECT * FROM ListItems WHERE Id IN ( '665E58E7E1226346BC424861DEC93F30','3FB790E49CDC924F8B4BA29623B18D2D');
-- Retrieves all list items for a specific list
SELECT * FROM ListItems WHERE ListId = '665E58E7E1226346BC424861DEC93F30';
-- Retrieves list items for multiple lists
SELECT * FROM ListItems WHERE ListId IN ( '3e5ce609-bcf7-7d49-884c-baf70588d4bc','241563a3-bf89-4842-a0fb-6cbd06c87c0c');
Insert
既存のリストに新しいリスト項目を追加するには、次の構文を使用します。
-- Adds a new custom list item to the specified list
INSERT INTO ListItems (value, shortCode, listid)
VALUES ('MyCustomListItem','VFAL1','4c392113-c827-4e9c-9b2f-80c473018081');
Update
ListItems は更新できませんが、アイテム自体は更新できます。Items テーブルを参照してください。
Delete
ListItems は削除できませんが、アイテム自体は削除できます。Items テーブルを参照してください。
Columns
| Name | Type | ReadOnly | References | Description |
| Id [KEY] | String | False |
The unique identifier of the list item. | |
| Code | String | False |
List item long code. | |
| ShortCode | String | False |
List item short code. | |
| Value | String | False |
List item value. | |
| ParentId | String | False |
The unique identifier of the parent list item. | |
| Level | Int | False |
Level of the list item within the list. | |
| HasChildren | Boolean | False |
If true, the list item has children in this particular list. | |
| IsDeleted | Boolean | False |
Indicates the deleted state of the item in a particular list. If false, the list item is not deleted from one or more lists. The lists field will include only the lists that contain the list item in a not-deleted state. isDeleted will only be true when the list item is deleted from all lists. The lists field will include all lists that contain the list item. デフォルト値はfalseです。 | |
| ListId [KEY] | String | False |
Lists.Id |
The unique identifier of the list that contains the list item. |