Activity Forums Salesforce® Discussions How to create test class for big object in Salesforce?

  • Rajan

    Member
    January 4, 2018 at 2:46 pm

    Hi Satish ,

     

    I have created a dummy Data of big object . hope it may be helpful in test class .
    <Customer_Interaction__b> bo = new Customer_Interaction__b();
    bo.Account__c = "001R000000302D3";
    bo.Game_Platform__c = "PC";
    bo.Play_Date__c = "2015-01-01T23:01:01Z";
    bo.In_Game_Purchase__c = "A12569";
    bo.Level_Achieved__c = "41";
    bo.Lives_This_Game__c = "3";
    bo.Score_This_Game__c = "5500";
    bo.Play_Duration__c = "25";
    database.insertImmediate(bo);

    Thanks !

     

Log In to reply.

Popular Salesforce Blogs

Popular Salesforce Videos