SandboxBerry icon indicating copy to clipboard operation
SandboxBerry copied to clipboard

Exclude relationship fields from being updated

Open bushile opened this issue 6 years ago • 2 comments

Is there a way to exclude relationship fields from being updated like OwnerId field? For example, data in Pricebook2, Product2 and PricebookEntry are included in newly created developer sandboxes so there is no need to migrated them afterwards. But if they are not included in the instruction files when migrating data for objects like OpportunityLineItem or QuoteLineItem, the corresponding lookup Id values will be empty which prevent the record from being inserted since they are required. Thanks.

bushile avatar Dec 19 '19 18:12 bushile

Hmm, good point, no I don't think there's a way to do this. Would be pretty easy to add if you want to have a go

codeulike avatar Jan 06 '20 11:01 codeulike

Similar to excluding RecordType, I've added code to exclude Pricebook2, Product2 and PricebookEntry in my fork. Thanks.

bushile avatar Jan 14 '20 17:01 bushile