Big Object Implementation into Salesforce Org.

How To Create Big Object in Salesforce Org

Step 1: Create object File: Below have details of sample object file.
                   Object name:API Log.
                   File name=API_Log__b.object.
                   
  <?xml version="1.0" encoding="UTF-8"?>  
<CustomObject xmlns="http://soap.sforce.com/2006/04/metadata">  
   <deploymentStatus>Deployed</deploymentStatus>  
   <fields>  
     <fullName>EndPointURL__c</fullName>  
     <label>EndPointURL</label> 
     <length>131072</length>     
     <required>false</required>  
     <type>LongTextArea</type>  
     <unique>false</unique>
     <visibleLines>3</visibleLines>
</fields>  
   <fields>  
     <fullName>Start_Date_Time__c</fullName>  
     <label>Start Date Time</label>  
     <required>True</required>  
     <type>DateTime</type>  
     </fields>  
   <fields>  
     <fullName>End_Date_Time__c</fullName>  
     <label>End Date Time</label>  
     <required>True</required>  
     <type>DateTime</type>  
     </fields>  
   <fields>  
     <fullName>Status_Code__c</fullName>  
     <label>Status Code</label>  
     <length>50</length>  
     <required>True</required>  
     <type>Text</type>  
     <unique>false</unique>  
   </fields>
   <fields>  
     <fullName>Status__c</fullName>  
     <label>Status</label>  
    <length>255</length>   
     <type>Text</type>  
     <unique>false</unique>
   </fields>
   <fields>  
     <fullName>API_Name__c</fullName>  
     <label>API Name</label>  
     <length>50</length>  
     <required>True</required>  
     <type>Text</type>  
     <unique>false</unique>  
   </fields>
   <fields>  
     <fullName>RecordId__c</fullName>  
     <label>RecordId</label> 
     <length>131072</length>     
     <required>false</required>  
     <type>LongTextArea</type>  
     <unique>false</unique>
     <visibleLines>3</visibleLines>
</fields>    
    <fields>  
     <fullName>Error_Message__c</fullName>  
     <label>Error Message</label> 
     <length>131072</length>     
     <required>false</required>  
     <type>LongTextArea</type>  
     <unique>false</unique>
     <visibleLines>3</visibleLines>
</fields> 
    <indexes>  
<fullName>APILogIndex</fullName>  
<label>API Log Index</label>  
<fields>  
   <name>Start_Date_Time__c</name>  
   <sortDirection>ASC</sortDirection>  
</fields>  
<fields>  
   <name>End_Date_Time__c</name>  
   <sortDirection>ASC</sortDirection>  
</fields>
<fields>  
   <name>API_Name__c</name>  
   <sortDirection>ASC</sortDirection>  
</fields>
</indexes>  
   <label>API Log</label>  
   <pluralLabel>API Logs</pluralLabel>  
</CustomObject>








Step 2: Create XML file:Below have details.
                 File name=package.xml

<?xml version="1.0" encoding="UTF-8"?>

-<Package xmlns="http://soap.sforce.com/2006/04/metadata">


-<types>

<members>*</members>

<name>CustomObject</name>

</types>

<version>41.0</version>

</Package>





Step 3:Create folder with "package" name.



Step 4:Create folder under package folder with "Object" name and add STEP 2 file (package.xml) into Package folder.



Step 5:Add API_Log__b.object file into Object folder.



Step 6:Go to Package folder there we have 2 items.
               1.Object folder.
               2.package xml file.
              Select both files and generate / Compressed into ZIP Folder.

Step 7:Go to Workbench
                https://workbench.developerforce.com/login.php?startUrl=%2FrestExplorer.php


Step 8: Deployed that package.zip file: Go to Migration tab ---> Deploy
                  Choose file as package.zip
                  Check only true for validated
                  Single package is true
     

Step 9: Object Created successfully in ORG.
                 Go to quick search box --> find big object
                

             




Comments

Popular posts from this blog

Configuration Postman Tool with Salesforce

Differences Between Future and Queueable Apex