You need to sign in to do that
Don't have an account?
MATTYBME
Automate Sharing Cases Externally through Salesforce 2 Salesforce?
Is there a way to automate the external sharing of Cases via Salesforce2Salesforce? We want to be able to share all Cases with an external company as they are created.
It does not seem it is possible through Workflow but is it possible through say Apex? If so how would this look?
You can use Apex Code to automatically forward a case on creation, take a look at the PartnerNetworkRecordConnection object and the sample code. And your partner company can auto-accept these records as of Summer '09.
Hope that helps,
Sati
So the Sample code needs to be inside an Apex Class within a Public Class on Cases?
List<PartnerNetworkConnection)> connMap = new List<PartnerNetworkConnection>([select Id, ConnectionStatus, ConnectionName from PartnerNetworkConnection where ConnectionStatus = 'Accepted']); for(PartnerNetworkConnection network : connMap) { PartnerNetworkRecordConnection newrecord = new PartnerNetworkRecordConnection(); newrecord.ConnectionId = network.Id; newrecord.LocalRecordId = caseID; newrecord.SendClosedTasks = true; newrecord.SendOpenTasks = true; newrecord.SendEmails = true; insert newrecord; }
I'd use a trigger, so as soon as the case is created, it's forwarded.
Best,
Sati
Grt to hear this. So finally there's something out like Automated S2S.
I was developing the same solution using Apex Webservices and Apex Callouts http://community.salesforce.com/sforce/board/message?board.id=apex&thread.id=15541&page=1&view=by_date_ascending
Anyhow this solves my query, thanks for complete solution with code!
http://community.salesforce.com/sforce/board/message?board.id=apex&message.id=16915#M16915
However, I am unable to see any PartnerNetworkConnection object on the Apex Explorer. Therefore, queries against it such as that of the examples on the PartnerNetworkConnection page fail.
How am I able to access that object to implement the automatic forwarding implementation that you guys are referring to?
Thank you
Did you tried to access the object using APEX Code. Also note on the line stating that this feature is supported from Summer'09.
Check out AppExchange app Hubcase for Salesforce. It allows you to escalate or share cases to partners not using salesforce as well as those who are using salesforce. Clean separation of your customer interactions from partner interactions. No S2S required.