Activity Forums Salesforce® Discussions How to get the debug log of Connection user in salesforce to salesforce Integration?

  • Manpreet

    Member
    May 10, 2017 at 4:51 am

    Hi Saurabh,

    When configuring Debug Logs, you cannot choose a Salesforce to Salesforce Connection User from the User Lookup, but there is a workaround to achieve this.

    To begin capturing Debug Logs for a Connection User open the following URL in your browser:

    XXX.salesforce.com/p/setup/layout/AddApexDebugLogUser?retURL=%2Fsetup%2Fui%2FlistApexTraces.apexp&UserLookupInput_lkid=YYYYYYYYYYYYYY
    &UserLookupInput=Connection%20User

    Replace XXX with your salesforce instance, UserLookupInput_lkid is the ID of the Connection User and UserLookupInput is the User name. You can find
    the user ID of the connection user, by inspecting the CreatedById for a record created by this user. (eg. via eclipse or Force.com explorer)

    Thanks.

  • Avnish Yadav

    Member
    September 30, 2018 at 3:12 am

    Hello,

    First, identify your 'Connection User' ID. As referenced by the initial answer, you can find the user ID of the 'Connection User', by inspecting the CreatedById for a record created by this user. (eg. via eclipse or Force.com explorer). I exported records loaded by the S2S connection from the target org and pulled the ID referenced in the 'CREATEDBYID' myself.

    Second, in your Developer Console, navigate to:

    Debug > Change Log Levels

    Under 'User Tracing for All Users' select 'Add'. Then paste in the User Id for the 'Connection User' you've already identified. Click 'Add' and 'Done' and you should be off to the races.

    Thanks.

Log In to reply.

Popular Salesforce Blogs

Popular Salesforce Videos