That will work. You have to use listaddressgroupings in the console, go to Help>Debug Log>Console and key that in. Check the addresses using blockexplorer.com for coins. After that, use
walletpassphrase PASSWORDHERE 600
if you have encryption on the wallet.
in the console and dump those private keys. You can sweep them into an Electrum wallet.