Wednesday, June 18, 2014

How to access Connection User in debug log.

We all work with external points where data is created by connection user in salesforce. One example is the Salesforce to Salesforce connection record share. In this the data is created by a special user called as "Connection User". "That's ok what is the problem in that" well the problem is that if there is a trigger or validation rule that is not letting the data to be created in the receiving org then we cannot view "Connection User" in debug log.
But there is a little trick that you can use :

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

Use this URL and replace "XXX" with your domain name and "YYYYYYYYYYYYYY" with the ID of the connection user (can get it if you have any record in the org created by that user, the Id will be in the OwnerId). Just put those there and hit enter the user will be added in the debug log.

No comments:

Post a Comment