No problem - we were all new once!
In the picture above the white connector was attached to the roof micro switch. Because the switch was duff, I cut the connector off ( you can just see the the cut end of one of the thinner black wires)
I then pushed a loop of new wire (the thicker black one) into the back of the terminals and secured it to the original wires with a cable tie.
If I then reconnect this to the socket below the mounting point, it fools the system into think the micro switch is operative.
Be careful though, you still need to crank the front lip of the roof before operating the motor otherwise the mechanism doesn't fold and articulate properly.
If you operate the hydraulic motor without first cranking the front lip, you can sprain and distort the whole roof.
(All this little trick did was buy me time to get a new micro switch ordered and delivered)