In the case of congratulations and condolences, you can basically apply for benefits from the company and arrange for flowers, telegrams, etc. by submitting the necessary applications.
Please refer to the following for the common process of application for both.