When you click on links to various merchants on this site and make a purchase, this can result in this site earning a commission. Affiliate programs and affiliations include, but are not limited to, the eBay Partner Network.
Year/model/trim of the truck? Year/model/trim of the donor vehicle the doors are off of?
The actual metal wire terminal can usually be de-pinned and plugged into another style plastic housing. Sometimes this will help you mix and match parts from other Toyota vehicles without having to hack up harnesses and plug.
In my 86 SR5 there is a sub harness between the door light and window switch, upstream of this sub harness in the door harness is the connection for the window motor. You're probably missing the door control relay also, it's not super important but it allows you to run the windows up and down for a short time after the ignition is switched off.
Don't forget to wire up your window motor circuit breakers...