Doubtful, the 04 would e OBD1 and the 07 would be OBD2.
OBD II started in 1996, not 2004. I do doubt that a trans from 3 years before your 2007 will work.
Thanks I found another also can you tell me where to find the #s to verify the correct trans. The one I found has stickers with bar codes and #s
Sorry, I knew that I don't know why I was thinking it said 94. but it still won't work unless you put in an aftermarket transmission controller for that 04 transmission or know a really smart tranny tech that can rewire the 07 trucks transmission controller to match the 04.
Looking for a Used Dakota in your area?
CarGurus has 4,297 nationwide Dakota listings starting at $1,495.
Search Dodge Dakota Questions
Dodge Dakota Experts