function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Raghav TRaghav T 

how to generate logs for Connection User while using PartnerNetworkRecordConnection ?

Hi there,
I have setup the Salesforce-to-Salesforce connection through which i am trying to send the Case records from Org1 to Org 2.
In Org 1 i have written a PartnerNetworkRecordConnection code to send Case record data.
Here's a probelm In Org 2 I also created a trigger that can target the newly created Case record so that i can catch the record comming from Connections and perform some actions. But I am not able to generate any logs even system.debug().
Trigger Code :
if(Trigger.isAfter && Trigger.isInsert){
        System.debug('Inside trigger InitalCaseLoadFromEmmiTrigger');
        InitalCaseLoadFromEmmiTriggerHandler.initailCaseLoad(Trigger.new);
    }

 
VinayVinay (Salesforce Developers) 
Hi Raghav,

You can check debug a system user and see if you can see any logs.  Kindly review below article for detailed steps.

https://help.salesforce.com/s/articleView?id=000386565&type=1

Please mark as Best Answer if above information was helpful.

Thanks,
Eric Morgan 10Eric Morgan 10

Represents a record shared between Salesforce organizations using Salesforce to Salesforce.
Supported Calls
create(), query()
must see this all information here: https://developer.salesforce.com/docs/atlas (https://developer.salesforce.com/docs/atlas.en-us.210.0.object_reference.meta/object_reference/sforce_api_objects_partnernetworkrecordconnection.htm)

Thanks,

https://www.miocado.me/