Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Account acc = new Account(
- Name = 'Test Name'
- );
- insert acc;
- SF_Customer_Ownership__c co = new SF_Customer_Ownership__c(
- SF_Account__c = acc.Id
- );
- insert co;
- SF_Customer_Product__c cp = new SF_Customer_Product__c(
- SF_Retailer__c = acc.Id,
- SF_Customer_Ownership__c = co.Id,
- SF_Sales_Position_No__c = 10,
- SF_Status__c = 'Fulfilment Process',
- SF_Suspend_Reason__c = null,
- SF_Terminal_Identifier__c = 'TItest',
- SF_TerminalType__c = 'ATM',
- SF_Com_Type__c = 'PSTN',
- SF_IPAddress__c = 'TestAddress',
- SF_Manufacturer__c = 'NCR',
- SF_Model__c = 'TestModel',
- SF_SerialNumber__c = 'TestSNumber',
- SF_SupportHour__c = 'TestSupportHour',
- SF_Support_Team__c = 'North',
- SF_PollLineNo__c = 'TestPollLine',
- RecordTypeId = SF_DAO.getRecordTypeId('SF_Device_ATM', 'SF_Customer_Product__c')
- );
- insert cp;
- System.debug(cp.Id);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement