2

Is there a way to create unit testing for PartnerNetworkConnection and PartnerNetworkRecordConnection without using live data(SeeAllData=true)? I've been having a lot of issues trying to deploy S2S Apex unit code without using live data. I can't seem to modify any fields in those two Partner Network Connection objects. The only way I've been able to deploy to production from Sandbox is to populate production with a bunch of dummy data to pass test. Any ideas how this can be done?

0

If you look at the Object Reference, those objects can only be created. You can't update any of those records. If I'm not mistaken, you first need to enable Salesforce to Salesforce in your org, then deploy your S2S Apex classes to support it just as you do with other Salesforce features such as Sites.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.