//Note: Using PHPToolkit v2012.2
 $basicCustomRecord = new CustomRecordRef();
 $basicCustomRecord->internalId = "1"; // internal id of the custom record you want to delete
 $basicCustomRecord->typeId = "123"; // Record Type's internal ID (Setup > Customization > Record Types > (internal id)
 $basicCustomRecord->type = 'customRecord';
 
 $request = new DeleteRequest();
 $request->baseRef = $basicCustomRecord;
 
 $delResponse = $service->delete($request);
 
No comments:
Post a Comment