There are a lot of 2-way and 3-way solenoids you could probably sub from different models. 14956-38U10 is a 2-way off '95~'99 SR20's and VQ30's, 14956-31U1A is a 3-way used on a lot of stuff '95~'04. The FSM isn't exactly clear on what the functions are, but if you look on EC-219 and EC-228 here...
https://www.nicoclub.com/service-manual ... 7%2Fec.pdf
...most Nissan 3-ways work that way. The only difference is whether the solenoid closes A-B and opens A-C, or vice versa. If you discover it's working backwards, just swap where A and C go. You'll probably also need to find new mating connectors, but the later style ones shouldn't be too hard to find in either eBay or the JY.