You need to sign in to do that
Don't have an account?
Alfredo Ornelas 4
Opportunity with products sharing with Salesforce to Salesforce
Hi,
I'm new with Apex, can you help me and modify this piece of code to share Opportunity with products instead of Contact record via S2S?
I'm new with Apex, can you help me and modify this piece of code to share Opportunity with products instead of Contact record via S2S?
Here is basic code snippet to share a contact record via S2S programmatically. PartnerNetworkRecordConnection newConnection = new PartnerNetworkRecordConnection( ConnectionId = networkId, LocalRecordId = newContact.Id, SendClosedTasks = false, SendOpenTasks = false, SendEmails = false, ParentRecordId = newContact.AccountId); insert newConnection;
May I suggest you please refer the below link for reference.
https://help.salesforce.com/articleView?id=000002680&type=1
Hope it will be helpful.
Best Regards
Rahul Kumar