The way I keep my spirit up in the workplace when faced with rejection is that I always try to come at a different angle with things like if one thing isn't working out maybe I can help you out with something else like give you another option but if that doesn't work then I just move on to the next thing.