インデックス
カスタム Big Object 内に定義されたインデックスを表します。カスタム Big Object の複合主キー (インデックス) を定義するには、このメタデータ型を使用します。Metadata メタデータ型を拡張し、その fullName 項目を継承します。
ファイルのサフィックスおよびデ��レクトリの場所
インデックスは Big Object のカスタムオブジェクト定義の一部で、ユーザーが定義します。詳細は、「CustomObject」を参照してください。
バージョン
Index 型は、API バージョン 41.0 以降で使用できます。
項目
| 項目名 | 項目の型 | 説明 |
|---|---|---|
| fields | IndexField[] | インデックスの項目の定義。 |
| label | string | 必須。この名前は、ユーザーインターフェースで Big Object を参照するために使用します。API バージョン 41.0 以降で利用できます。 |
IndexField
インデックスを構成する項目、順序、並べ替え方向を定義します。項目を定義する順序によって、インデックスにリストされる項目の順序が決まります。
| 項目名 | 項目の型 | 説明 |
|---|---|---|
| name | string | 必須。インデックスに含まれる項目の API 参照名。この値は、項目セクションの対応する項目の fullName の値と一致していて、必須としてマークされている必要があります。 |
| sortDirection | string | 必須。インデックスの項目の並べ替え方向。有効な値は、ASC (昇順) と DESC (降順) です。 |
宣言的なメタデータの定義のサンプル
次に、カスタム Big Object Customer_Interactions__b.object の定義内に含まれるインデックスの例を示します。
1<?xml version="1.0" encoding="UTF-8"?>
2<CustomObject xmlns="http://soap.sforce.com/2006/04/metadata">
3
4 <deploymentStatus>Deployed</deploymentStatus>
5
6// Define the fields within the big object
7 <fields>
8 <fullName>Purchase__c</fullName>
9 <label>Purchase</label>
10 <length>16</length>
11 <required>false</required>
12 <type>Text</type>
13 <unique>false</unique>
14 </fields>
15
16 <fields>
17 <fullName>Order_Number__c</fullName>
18 <label>Order Number</label>
19 <length>16</length>
20 <required>false</required>
21 <type>Text</type>
22 <unique>true</unique>
23 </fields>
24
25 <fields>
26 <fullName>Platform__c</fullName>
27 <label>Platform</label>
28 <length>16</length>
29 <required>true</required>
30 <type>Text</type>
31 <unique>false</unique>
32 </fields>
33
34 <fields>
35 <fullName>Account__c</fullName>
36 <label>User Account</label>
37 <referenceTo>Account</referenceTo>
38 <relationshipName>User_Account</relationshipName>
39 <required>true</required>
40 <type>Lookup</type>
41 </fields>
42
43 <fields>
44 <fullName>Order_Date__c</fullName>
45 <label>Order Date</label>
46 <required>true</required>
47 <type>DateTime</type>
48 </fields>
49
50// Define the index
51 <indexes>
52 <fullName>CustomerInteractionsIndex</fullName>
53 <label>Customer Interactions Index</label>
54 <fields>
55 <name>Account__c</name>
56 <sortDirection>DESC</sortDirection>
57 </fields>
58 <fields>
59 <name>Platform__c</name>
60 <sortDirection>ASC</sortDirection>
61 </fields>
62 <fields>
63 <name>Order_Date__c</name>
64 <sortDirection>DESC</sortDirection>
65 </fields>
66 </indexes>
67
68 <label>Customer Interaction</label>
69 <pluralLabel>Customer Interactions</pluralLabel>
70</CustomObject>マニフェストファイル内のワイルドカードのサポート
このメタデータ型では、package.xml マニフェストファイル内のワイルドカード文字 * (アスタリスク) はサポートされません。マニフェストファイルの使用についての詳細は、「zip ファイルを使用したメタデータのリリースと取得」を参照してください。