Electrical or starter problem

This new to me Polaris 500 Sporstman is starting to be a PIA. Son had it out in the woods. Turned off for a few minutes to move some debris. Got back on and nothing. No ignition. Won’t turn over. No problem. Pull start works and he brings it home. Ok so battery must be dead. Charge it up. Still nothing. I hear clicking when I turn the key. It’s not coming from the starter though but from something I assume is some sort of solenoid. Anyone have experience with this. It’s visible under the seat. I don’t have a manual so I don’t even know what part it is. I’d like to be able to call the local shop and get a replacement if that’s what it is. So what is it? Does it go regularly? Hope you can help.