Advertisement
Guest User

Untitled

a guest
Dec 11th, 2018
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.96 KB | None | 0 0
  1. Account acc = new Account(
  2.         Name = 'Test Name'
  3. );
  4.  
  5. insert acc;
  6.  
  7. SF_Customer_Ownership__c co = new SF_Customer_Ownership__c(
  8.         SF_Account__c = acc.Id
  9. );
  10.  
  11. insert co;
  12.  
  13. SF_Customer_Product__c cp = new SF_Customer_Product__c(
  14.         SF_Retailer__c = acc.Id,
  15.         SF_Customer_Ownership__c = co.Id,
  16.         SF_Sales_Position_No__c = 10,
  17.         SF_Status__c = 'Fulfilment Process',
  18.         SF_Suspend_Reason__c = null,
  19.         SF_Terminal_Identifier__c = 'TItest',
  20.         SF_TerminalType__c = 'ATM',
  21.         SF_Com_Type__c = 'PSTN',
  22.         SF_IPAddress__c = 'TestAddress',
  23.         SF_Manufacturer__c = 'NCR',
  24.         SF_Model__c = 'TestModel',
  25.         SF_SerialNumber__c = 'TestSNumber',
  26.         SF_SupportHour__c = 'TestSupportHour',
  27.         SF_Support_Team__c = 'North',
  28.         SF_PollLineNo__c = 'TestPollLine',
  29.         RecordTypeId = SF_DAO.getRecordTypeId('SF_Device_ATM', 'SF_Customer_Product__c')
  30. );
  31.  
  32. insert cp;
  33.  
  34. System.debug(cp.Id);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement