transactions – gettransaction can not get the address from where it is sent

Hello, I've tried a few times with the gettransaction method, it seems that it only shows complete details about the transaction when it is sent inside the node.

But if I send from another address outside my node, gettransaction only shows the transaction details of the receiving address.

How can I get full details in both ways, even that address does not come from my node